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:
Let Suppose following:
1) Addin 5.4.42
2) Wamp Server drive is E:
Follow the following steps to upgrade your PHP version.
- Download PHP5.4 From http://windows.php.net/download/#php-5.4 (Download Thread Safe)
- Go to PHP Folder Location (i.e E:\wamp\bin\php)
- Create a new folder with name php5.4.42.
- Extract the download files and save in E:\wamp\bin\php\php5.4.42.
- Copy the following files from your old PHP directory to your new PHP directory ().
php.ini phpForApache.ini wampserver.conf
- Open new copied php.ini file.
- Update the extension_dir path in file.
- Open new phpForApache.ini file.
- Update the extension_dir path in file.
- Reboot your system.
- Start wamp Server
- Go to wampserver =>PHP=>Version=>PHP 5.4.42
- Now running PHP5.4.42
Note: you might need to Re-enable the PHP extension like CURL, Openssl etc