Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wamp update php to 7.2.2 version does not work

Tags:

php

wamp

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.

like image 583
DINA TAKLIT Avatar asked Mar 12 '26 09:03

DINA TAKLIT


2 Answers

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.

like image 144
RiggsFolly Avatar answered Mar 13 '26 22:03

RiggsFolly


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:

  • Download 7.2.13 (or version of choice) from https://windows.php.net/download/
  • Extract files to versioned folder e.g. wamp/bin/php/php7.2.13
  • Copy php.ini, phpForApache.ini and wampserver.conf from wamp/bin/php/php7.1.9 folder into new php folder
  • replace all occurrences of old folder name in php.ini and phpForApache.ini e.g. replacing php7.1.19 with php7.2.13
  • Exit WAMP
  • Start WAMP
  • Click WAMP menu, PHP, Version, select your new version

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

like image 25
Liam Wheldon Avatar answered Mar 13 '26 23:03

Liam Wheldon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!