PDA

View Full Version : Drupal Install On a Shared Server


andrewknight
03-09-2008, 04:03 PM
I am trying to get Drupal installed on a shared server but keep running into this error message:

"Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini mbstring.http_input setting. Please refer to the PHP mbstring documentation for more information. (Currently using Unicode library Error)"

I read all the info here: drupal.org/node/87138 and it looks like they solved it with some edits to the htaccess file. I checked mine and I have the required settings but it is still not working.

<IfModule mod_php5.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
</IfModule>


Anybody able to install Drupal 6.1 on a shared server?

thanks,
Andrew

Jon124
03-09-2008, 06:10 PM
yea, I am. the install went flawlessly. however it was a while ago, could this be something with the new php5? have they disabled 4 yet?

Ray
03-09-2008, 11:32 PM
Andrew,

Make sure you have the following in the .htaccess file in order to use PHP5:

AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /php-fastcgi/php-cgi

Jon124
03-10-2008, 11:38 AM
Andrew,

Make sure you have the following in the .htaccess file in order to use PHP5:



when I add this code to the htaccess of my current drupal installation drupal gives me the error


"Unicode library Error
Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini mbstring.http_input setting. Please refer to the PHP mbstring documentation for more information."


when I take the code out it runs fine

Ray
03-10-2008, 02:28 PM
I've just done some quick testing, and I'm seeing that problem if the two lines to use PHP 5 are in the file, but not the other ones Andrew referenced. I also got the same error having only the lines Andrew mentioned, but not the ones I did.

The .htaccess file I'm using to test contains:


AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /php-fastcgi/php-cgi

<IfModule mod_php5.c>
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_flag register_globals off
</IfModule>


If you were using PHP4 previously, your .htaccess file might have an <IfModule mod_php4.c> or similar that restricts those settings to PHP5. You'd probably want to explicitly set those options for PHP5 as well.

Jon124
03-19-2008, 05:49 PM
has this been resolved? Id like to get my site moved to the litespeed server but it runs only php5 and don't want this error in ma drupalz

kb0kqa
04-20-2008, 03:39 PM
I am running Drupal 5.7 and am familiar with the mbstring problem.

This is (I think) the fix I used. It worked on Apache and continues to work on the LiteSpeed servers:

in .htaccess, add:

php_value mbstring.http_input pass
php_value mbstring.http_output pass

If that doesn't do the trick for you send me a private message to get my attention and we'll figure out what does work. I do have it working correctly.

Jon124
05-14-2008, 02:21 PM
I am running Drupal 5.7 and am familiar with the mbstring problem.

This is (I think) the fix I used. It worked on Apache and continues to work on the LiteSpeed servers:

in .htaccess, add:

php_value mbstring.http_input pass
php_value mbstring.http_output pass

If that doesn't do the trick for you send me a private message to get my attention and we'll figure out what does work. I do have it working correctly.


I also did this, and it caused some very odd errors. Specifically my phpbb forum to turn certain characters into others, and to display some odd stuff.

kb0kqa
05-14-2008, 04:59 PM
I also did this, and it caused some very odd errors. Specifically my phpbb forum to turn certain characters into others, and to display some odd stuff.

I don't run a phpbb forum with Drupal (as of yet), so I can't say how it would affect phpbb.

You'd probably want to set it back to the defaults for phpbb.