Page 1 of 1

Problems expected after Host upgrades tot PHP5 ??

Posted: Thu Dec 06, 2007 12:04 pm
by mev
My hosting provider announces to stop support for PHP4 and will upgrade to PHP5.
The latest install here is CMS-MS version 1.2. with several modules (bigger ones, like Album, Formbuilder etc) and is already using php5, so no probs.

But I have also several older sites for clients running with this host, with earlier versions of CMS-MS (version 1.0.6 "Niihau"
and 1.1 "Samoa"). They were installed with php4, I guess.
The system of this host is Linux blade25, Apache, mysql 5.0.32

Can I expect many problems after the migration to php5 for these older sites ???

Also, since the PHP-memory limit is a bit low at this server (16M), I am thinking about advising new clients to choose for another host too.

Thnak you very much

Willemijn

Re: Problems expected after Host upgrades tot PHP5 ??

Posted: Fri Dec 07, 2007 1:57 pm
by Ted
I've been developing CMSMS on php5 for over a year now, so you shouldn't see any issues.  Of course, I say shouldn't lightly.  :)

And in theory, with several modules and several hundred pages, 16 megs should still be enough.

Re: Problems expected after Host upgrades tot PHP5 ??

Posted: Fri Dec 07, 2007 3:16 pm
by kermit
the biggest potential headache i can see is if the host changes HOW php runs... module vs cgi or suexec; changing the user that php runs as will likely require some changes to file permissions. for instance, going from php running as the webserver, you normally use 777 (or 666) so that both you and php can read & write files; but if php runs as your user, you have to use 755 (or 644) instead.

if your host has BOTH available *now* -- you might want to consider migrating sites ahead of time, on YOUR schedule.. even if it does require fixing some permissions as you go from php as a module to php/cgi or something. at least you know things work and you won't have to scramble when the host does force php5 on you.

Re: Problems expected after Host upgrades tot PHP5 ??

Posted: Fri Dec 07, 2007 3:54 pm
by mev
Thanks Ted! I trust not too many probs will occur then!

Maybe  'memory limit of 16 is enough', is just theory? I don't know where the errors about memory limits come from then... I always get them when trying to install extra modules from Module-manager, especially the bigger ones, like TinyMCE-Adv:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 1228801 bytes) in /storage/mijndomein/../cmsmadesimple/modules/nuSOAP/classes/nusoap.php on line 6214

Willemijn

Re: Problems expected after Host upgrades tot PHP5 ??

Posted: Fri Dec 07, 2007 3:57 pm
by mev
kermit wrote: if your host has BOTH available *now* -- you might want to consider migrating sites ahead of time, on YOUR schedule.. even if it does require fixing some permissions as you go from php as a module to php/cgi or something. at least you know things work and you won't have to scramble when the host does force php5 on you.
Thanks Kermit, I'll get back to my host
There is a possibility to test in advance.

Willemijn