Drupal 5.5

My host (bluehost) upgraded the server this afternoon and automatically switched to php 5.2.5, you could view my site but couldn't login, they switched me back to 4 and all is okay.

Is there anything I need to do make the site fully functional on php 5?

Apparently there will only be ONE php.ini in the root, whereas before I had one in each domain folder (not sure if this relevant but trying to be thorough).

Thanks

Comments

xmacinfo’s picture

Usually when the host upgrade to a later version of PHP and probably Apache, you will need to delete your cookies. Once done, you should be able to log in again.

vm’s picture

may also want to investigate your $db_url line and make sure it is mysqli rather then mysql

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

dixieau’s picture

Thanks for that, didn't fix the problem though... (yes I deleted the cookies too and tried different browsers)

Get the following when trying to login.
Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 71 bytes) in /home/xxxx/public_html/xxxx/sites/all/modules/admin_menu/admin_menu.module on line 130

Have restored server to php4 again (thank goodness for the easy switch between the two!)

I have done a compare of the default php.ini (php5) and my old php.ini (php4) and the only difference I can see is this:
php4: memory_limit = 20M ; Maximum amount of memory a script may consume (32MB)
php5: memory_limit = 20M ; Maximum amount of memory a script may consume (10MB)

Could this be the reason why? Bluehost has there maximum set at 10MB??

Thanks for all suggestions, I would love to switch it over to 5 if possible.

vm’s picture

You are exhausting memory , try increasing memory_limit to 24M if possible ?

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

dixieau’s picture

Thank you, all working...

I actually changed it to 32MB, what I was neglecting to do was change it on the domain as well as the root!

Jorge Campo’s picture

Can you tell me where I can find in Bluehost the php.ini file?

I do not see the:

php4: memory_limit = 20M ; Maximum amount of memory a script may consume (32MB)
php5: memory_limit = 20M ; Maximum amount of memory a script may consume (10MB)

I get a php.ini.default file that bluehost claim I can change and later convert into a php.ini file.
However it does not show the memory_limit info.

I got the same error about my memory...followed later by a table_locked errors.

Jorge Campo
www.autismoaba.org

dixieau’s picture

Did you resolve your php.ini problem with Bluehost? Sorry, only just found your post.

I suggest you make a copy of the default and modify that one then rename it php.ini
Look for the following at about line 226 on php5 (ctrl+f 'memory') to find the critter
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 32M ; Maximum amount of memory a script may consume (10MB)

also check that you are using the correct version: if it has the following at the top, your using php5
;;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHP installations.

Good luck, I am happy I switched to php5, site on the whole runs smoother.

Jorge Campo’s picture

Thanks for your help!
Right now I am planning to replace my drupal version 5.3 to 6.1. Before that I will put the new PHP version...unless somebody says something different.
I will check the upgrade process in a few weeks (too busy to do it at this moment)
Because I do not have too much content I am not that worried. In some way perhaps it is better to begin from zero for somebody like me: I have too many modules enabled, a few contents (just three pages), no members yet, the remaining upgrade to PHP 5, and I just realized that, as the experts say, it is better to circunvent Fantastico and learn to do the installation and upgrades by yourself.

Perhaps one day, Drupal will be so friendly that, dummies like myself won't bother with questions like these ones.
Thanks again.

Jorge Campo
www.autismoaba.org