Page 1 of 1

migration from php4 to php5

Posted: Tue Nov 18, 2008 5:12 pm
by compufairy
Hello all,

I have been searching the forum to find an answer to my question, but could not find it, so I decided to post it here.

I am running CMSMS, latest release (downloaded and installed okt 08), on a server with php4. Of course this causes some problems since a couple of modules don't work. F.e. I installed the album module, and my adminpanel turned to shambelodeee on the modules page. I am pretty sure this has to do with running php4.

My host told me he could move my account to another server that has php5.

I would like to know if I have to take certain steps before he migrates my data, or does CMSMS adapt automatically?

Kind regards from The Netherlands,

Anne-Mieke

Re: migration from php4 to php5

Posted: Tue Nov 18, 2008 5:32 pm
by Pierre M.
Hello,

backing up never hurts.
CMSms 1.4.1 core should run OK today on both PHP4 and PHP5. (often hosting providers provide both and you can chose with htaccess) But yes modules may be tricky.
To diagnose your problem and to know if they are PHP version related, monitor your http (access and error) logs.

Pierre M.

Re: migration from php4 to php5

Posted: Tue Nov 18, 2008 6:15 pm
by compufairy
Hi Pierre,

Thanks for your reply. I will back up anyway, I have learned that the hard way since crashing my first try of CMSMS in the beginningĀ  ;)

Merci!

Anne-Mieke

Re: migration from php4 to php5

Posted: Tue Nov 18, 2008 6:17 pm
by Nullig
I have the Album module working on a couple of sites that use PHP4, so I don't think that is the problem. Perhaps you are short on memory. Try changing the php_memory_limit parameter in config.php to a higher value (32M or 64M).

Nullig

Re: migration from php4 to php5

Posted: Fri Nov 21, 2008 11:09 am
by compufairy
Thanks Nullig!

Now I have a probably very silly question, but then again, I am not a php whizz:

Do I have to type the number (i.e. 32 or 64) like this '64' or do I leave the quotes out?

regards and thanks again,

Anne-Mieke

Re: migration from php4 to php5

Posted: Fri Nov 21, 2008 12:38 pm
by Dee
compufairy wrote: Do I have to type the number (i.e. 32 or 64) like this '64' or do I leave the quotes out?
If you have access to php.ini this should be the format:

Code: Select all

memory_limit = 128MĀ  ; Maximum amount of memory a script may consume
Regards,
D