I wanted to update my php version from 7.0.1 to 7.2.2. So I followed all the steps here in this tutorial.By of course putting 7.2.2 instead of the given value.
Once I restarted my wamp it does not show the new version. It still only show the oldest one 5.6.25 and 7.0.10.
I did not understand why. Is it because some instruction in the tuto for the extensions are those of 7.1.7.
Please how could i fix this problem.
That tutorial looks very out of date.
First upgrade to WAMPServer 3.1.1 available from here it is the secondary repository, but it is much easier to navigate than SourceForge. Of course you should be able to find all this on SourceForge if you prefer.
You must be using WAMPServer 3.0 or above to run this upgrade, and I assume you are, this will just update any 3.0.? version to 3.1.1 without changing any versions of Apache/MySQL/mariaDB/PHP or any of your code or databases.
Then go back to the linked page above and find the PHP-ADDON that you want to install. The latest versions will all show automatically, if you want a non latest version then press the "See All Available Versions" button and all the versions of PHP/Apache/MySQL/mariaDB will be displayed.
Click on the version of PHP you want and it will download an installer for that version. Save it somewhere on disk and then run it. Once the new version is installed you will then see WAMPServer terminate automatically.
When you restart it you will see the new version available for selection using the wampmanager menus, to activate the new version of PHP just do
wampmanager -> PHP -> Version -> version numbers
Click the version number of PHP that you want to activate.
Just to add as I came across this today while looking to upgrade from 7.1.9 to 7.2.13 in WAMP.
Ref: https://john-dugan.com/upgrade-php-wamp/
Basically:
You might also need to copy over/download extensions if they don't exist in the new php setup.
This is for windows machines running WAMP anyway
Regards Liam
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With