Upgrade to PHP 5.2 - instructions anywhere?

Upgrade to PHP 5.2 - instructions anywhere?

von Cindy L -
Anzahl Antworten: 4

My Moodle is running on Windows 2003, IIS, PHP 5.0.5, MySQL 4.1. I need to upgrade to PHP5.2  I messed up my database a week ago, and now I am worried about any move I take without detailed instructions... black eye  Is there an instruction somewhere?  I looked quite a lot places on line, but didn't find one. Do I pretty much only replace the new php.ini with my old one?  Can I just copy and paste the old one over?  Do I change anything in IIS?

Anything I should watch out when upgrade Mysql?

Thank you!

Cindy

Als Antwort auf Cindy L

Re: Upgrade to PHP 5.2 - instructions anywhere?

von Dan Marsden -
Nutzerbild von Core developers Nutzerbild von Particularly helpful Moodlers Nutzerbild von Peer reviewers Nutzerbild von Plugin developers Nutzerbild von Plugins guardians Nutzerbild von Testers Nutzerbild von Translators
Hi Cindy,

upgrading php on windows is normally pretty simple - this is what I do.

rename the existing c:\php folder to c:\phpoldversion
extract the new PHP install to C:\php
copy the php.ini from the c:\phpoldversion into the new c:\php (unless you store it somewhere central like c:\windows - then you can leave it as is.)
restart IIS
Check the PHPINFO page to make sure everything looks ok!
lächelnd

- be very careful choosing the version to upgrade to on Windows, PHP 5.1.3,5.1.4,5.1.5 all have serious issues when running with IIS - (5.1.2 is the last known stable version on IIS) - I don't know anyone who has tested 5.2 on IIS yet to see if the stability issues have been resolved - I would suggest hanging fire on 5.2 for a couple of weeks to see how things go. - in the meantime you should be safe upgrading to 5.1.2

good luck!

lächelnd

Dan


Als Antwort auf Dan Marsden

Re: Upgrade to PHP 5.2 - instructions anywhere?

von Cindy L -

Thank you Dan for your very timely advice!!!!  I am sitting here downloading installation files right now.  I will do what you suggested.

Thank you sooooo much!!!

Als Antwort auf Cindy L

Re: Upgrade to PHP 5.2 - instructions anywhere?

von Cindy L -

Dan,

It worked like you said.  But I couldn't see the changes I made after I restarted IIS, so I restarted the World Wide Web publishing service, and see the version change. 

Thank you very much!!!

Cindy

Als Antwort auf Dan Marsden

Re: Upgrade to PHP 5.2 - instructions anywhere?

von Eric Henson -

I have a SUSE Linux Enterprise Server 10 that I am about to install Moodle 1.7 on and SUSE comes with PHP 5.1.2.  Should I upgrade to PHP 5.2?  I heard that some previous version of PHP had issues and people were recomending this upgrade.  If I do upgrade, do I upgrade PHP on Linux the same way that you upgrade on Windows?  Or do I have to compile PHP first?

Thanks, Eric