How to downgrade PHP on WAMP?
Posted by: alain_desilets (---.iit.nrc.ca)
Date: February 22, 2010 02:45PM

I need to downgrade PHP from 5.3 to 5.2.5. While I have seen many posts that mention downgrading, none of them describe how it's actually done. Do I need to reinstall all of WAMP from scratch, or is there a way that I can just downgrade the PHP component?

If I need to reinstall all of WAMP, is there a way that I can keep all my current settings (for example, all my various php.ini files, Apache config files, etc). What is the procedure for reinstalling WAMP without loosing any of the config settings?

Thx.

Re: How to downgrade PHP on WAMP?
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: February 22, 2010 04:19PM

left click wamp> php>version> get more>

select the version ytou want and download it.

install the exe.

left click wamp> php> version> php5.2.5

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Re: How to downgrade PHP on WAMP?
Posted by: jfrank (---.limewire.com)
Date: February 22, 2010 08:12PM

I did this earlier today and the services won't restart when I try to change the php version. My default php version was 5.3.0. I installed 5.2.10 and tried to switch to that (the same way as listed above). After doing that, the services stop and they won't restart properly until I switch back to php 5.3.0.

Any ideas what might be wrong? I get these messages in the apache_error log:

[Mon Feb 22 13:58:00 2010] [warn] pid file C:/wamp/bin/apache/Apache2.2.11/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Feb 22 13:58:00 2010] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)

Re: How to downgrade PHP on WAMP?
Posted by: sitecrew (---.range86-161.btcentralplus.com)
Date: March 10, 2010 11:05AM

Hi - just followed in jfrank's footsteps with the same result!

I originally installed with PHP 5.3 and need 5.2 in order to connect to older versions of MySQL. Now if I switch to 5.3 all is OK but if I switch to 5.2 the server doesnt start - only obvious issue in the apache log file is

[Wed Mar 10 09:55:00 2010] [warn] pid file C:/Program Files/wamp/bin/apache/Apache2.2.11/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

Any answers to this- it's causing me a lot of grief as my client backup system relies on connecting to remote MySQL 4 & 5 servers and PHP 5.3 doesnt seem to permit this...

Re: How to downgrade PHP on WAMP?
Posted by: jfrank (---.limewire.com)
Date: March 10, 2010 04:14PM

I installed PHP version 5.2.11 and tried installing that instead and it worked. Maybe there is a problem with 5.2.10?

Re: How to downgrade PHP on WAMP?
Posted by: sitecrew (---.range86-161.btcentralplus.com)
Date: March 10, 2010 05:34PM

Brilliant! That seems to have fixed it - I can switch betwen PHP 5.2.11 and 5.3 and - more importantly - my database backup is working again.

Thanks again

Re: How to downgrade PHP on WAMP?
Posted by: emmtqg (---.hsd1.ma.comcast.net)
Date: April 15, 2010 02:13PM

Hi -

It's not a problem with 5.2.10 only: I'm seeing a problem on XP with PHP 5.2.11 and 5.2.10. Apache log gives the same error message seen above with PHP 5.2.10:

[Thu Apr 15 07:58:13 2010] [warn] pid file C:/wamp/bin/apache/Apache2.2.11/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

I get no log error (that I can see - let me know where else I can check) for 5.2.11.

I saw another post and don't have any parens or spaces in my filepaths. Any tips on where else to look?

WAMP is great - I love the interface and have never had a problem before - I'm trying to think what's changed on my system - only thing being I've installed Norton, but I can't think why 5.3 works perfectly...

Thanks a million!

Re: How to downgrade PHP on WAMP?
Posted by: Yautja_Cetanu (---.zone7.bethere.co.uk)
Date: August 11, 2010 04:41PM

Hi I have the same issue. Using:

- Apache 2.2.11
- MySQL 5.1.36
- PHP 5.3.0

WampServer 2.0i [07/11/09]

And when trying to switch to php 5.2.11 or 5.2.10 it just won't start (The icon is yellow) with the same error message of unclean shutdown. But will start again if I enable php 5.3.0 again

Re: How to downgrade PHP on WAMP?
Posted by: Yautja_Cetanu (---.zone7.bethere.co.uk)
Date: August 11, 2010 04:43PM

Fixed my own problem by looking at the error message!

I just did "Stop all services" (instead of restarting the services) and then changed to 5.2.11 and then started it again smiling smiley

So the solution was "Have you turned it off and on again?"!

Re: How to downgrade PHP on WAMP?
Posted by: gryphus (---.pppoe-dynamic.High-Speed.nb.bellaliant.net)
Date: September 12, 2010 06:53PM

Very impressed. This is the type of support I would expect from top companies!

I was having issues with installing bbpress on virgin install of Wordpress 3.0.1

I had the same issue as the OP with PHP versions and WAMP refusing to load.
I downgrading to php 5.2.11 from php 5.3.0 resolved the warning messages immediately.



Edited 1 time(s). Last edit at 09/12/2010 07:01PM by gryphus.

Re: How to downgrade PHP on WAMP?
Posted by: Stanley (---.caucasus.net)
Date: November 10, 2010 08:52PM

Had the same problem when I tried to downgrade to 5.2.10 - Apache wouldn't start.

I changed the version back to 5.3 in the system tray and it worked ok. So I then downloaded 5.2.11 but this time I left Wamp running while I installed it. After it installed I changed to 5.2.11 in the system tray and then RESTARTED all services.

This fixed it for me - databases etc. all working as normal.

Phew!

I'm no expert in PHP - I just wish they would stop bringing out new versions with bits missing. I suppose there's a good reason for it, but it wreaks havoc with older scripts.

Re: How to downgrade PHP on WAMP?
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: November 10, 2010 09:07PM

there is a bug with the wampserver addon php5.2.10

i will build it again and post a link for it.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 11/10/2010 09:07PM by stevenmartin99.

Re: How to downgrade PHP on WAMP?
Posted by: jd3cker (---.dyn.optonline.net)
Date: February 19, 2011 06:30PM

You need to downgrade Apache from 2.2.x to 2.0.x. You'll then be able to run PHP 5.2.11.

[www.wampserver.com]

-Jay

@jd3cker

Re: How to downgrade PHP on WAMP?
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: February 19, 2011 07:10PM

no you dont need to do this....

and i have built the correct versions

>> [pampserver.com] and click downloads

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Re: How to downgrade PHP on WAMP?
Posted by: Abrasive (---.hfc.comcastbusiness.net)
Date: February 24, 2011 03:36AM

I was trying to downgrade to PHP 1.5.6, and I installed Apache 2.0.63, which failed to start services.

I messed around with it for a while, and finally added in Apache 2.0.61. I was able2 to start the services right away with that build. Is something wrong with Apache 2.0.63?

All of these attempts were using PHP 1.5.6.

Edit - Found the problem, the Apache 2.0.63 installer makes a lower cased folder name, when it should start with an uppercase.



Edited 1 time(s). Last edit at 02/24/2011 03:42AM by Abrasive.

Re: How to downgrade PHP on WAMP?
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: February 24, 2011 06:28AM

i built 2.0.64 awhile back. you shud be using that >> [pampserver.com]

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Re: How to downgrade PHP on WAMP?
Posted by: gbernier (---.bchsia.telus.net)
Date: April 14, 2011 06:36AM

Hi,

I've just tried using the PHP 5.2.11 package tonight and it's doing the same thing as reported here. I installed the last Wamp server as of yesterday and need to get 5.2.11 working.

Is the suggestion just to install it again?

Re: How to downgrade PHP on WAMP?
Posted by: ertdfg22 (98.126.95.---)
Date: May 29, 2011 03:56PM

I saw another post and don't have any parens or spaces in my filepaths.bags replica

Re: How to downgrade PHP on WAMP?
Posted by: kleer94 (---.neoplus.adsl.tpnet.pl)
Date: July 23, 2011 09:25AM

I was trying to run php5.2.x on Apache 2.2.x without succes.
If you want to downgrade php version you have to downgrade your apache version too.
I have php5.2.11 with Apache2.0.63 and it's running correctly- no one issues.
I think it's the solve grinning smiley

Re: How to downgrade PHP on WAMP?
Posted by: rodiusd (---.106.100.87.rev.sfr.net)
Date: September 25, 2011 04:48PM

Hi,

Running Win7 64bit. tryed to downgrade with the 5.2.11 but its not working.
I believe its the 32bits version.
So is there a 5.2.11 64bits version ?

Sorry, only registered users may post in this forum.