Monday, 22 June 2015

How to Upgrade PHP 5.3 to PHP 5.4 in WAMP Server in window 7


Adding addons  PHP 5.4 in WAMP Server is quite easy, just you need to follow the following (Works for me).

Please take the backup of code and database before Start.

Please make the backup of php.ini files. When we add addons in wamp server then, we can access the new PHP (php5.4) and old php (php5.x). Both are easily accessible.

Just to need to change the PHP Version like Below:

How to Upgrade PHP 5.3 to PHP 5.4 in WAMP Server in window 7

Let Suppose following:
1) Addin 5.4.42
2) Wamp Server drive is E:


Follow the following steps to upgrade your PHP version.

  1. Download PHP5.4 From http://windows.php.net/download/#php-5.4 (Download Thread Safe)
  2. Go to PHP Folder Location (i.e E:\wamp\bin\php)
  3. Create a new folder with name php5.4.42.
  4. Extract the download files and save in E:\wamp\bin\php\php5.4.42.
  5. Copy the following files from your old PHP directory to your new PHP directory ().
        php.ini
        phpForApache.ini
        wampserver.conf
    
  6. Open new copied php.ini file.
  7. Update the extension_dir path in file.
  8. Open new phpForApache.ini file.
  9. Update the extension_dir path in file.
  10. Reboot your system.
  11. Start wamp Server
  12. Go to wampserver =>PHP=>Version=>PHP 5.4.42
  13. Now running PHP5.4.42
    Note: you might need to Re-enable the PHP extension like CURL, Openssl etc

11 comments :

Navpad Infotech said...

good work

tanvir said...

i have done as describe above but it display error...

Error displaying the error page: Application Instantiation Error: The MySQL adapter mysqli is not available

Mohamed Rafiq said...

Hi! Thanks for the clear document. The newly installed php versions is not listed under php version list. My old version is 'php5.3.0' and the new version which is tried is 'php5.5.38'. Please help me to resolve it.

Anonymous said...

Hello,
Its not working for me.
I have followed all your steps but I can't user my new version php 5.4.42

Unknown said...

Hello,
I followed your steps. I am able to see the installed version and able to select it. But after selecting the wampserver icon is not turning into green(It is orange)

Poonam Gupta said...

Check apache logs from below path:

\wamp\logs\apache_error.log

Anonymous said...

Working!!!

Unknown said...

hello,
I followed all your steps. I am able to see the installed version and able to select it. But after that when I star localhost or phpmyadmin it doesnt work.It shows error that it is unable to connect localhost.plz give me solution as soon as possible.It's urgent.

sscsworld said...

Hi,
I followed your steps one by one but I am not able to green wamp button. After selecting the wampserver icon is not turning into green, It is orange. Please let me know solution. Thanks.

rohit sisodiya said...

after updating php version its not getting green signal

Anonymous said...

Please check the error log: \wamp\logs\apache_error.log

Post a Comment