DINA TAKLIT
DINA TAKLIT

Reputation: 8388

wamp update php to 7.2.2 version does not work

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.

Upvotes: 3

Views: 21178

Answers (5)

jai
jai

Reputation: 85

I can recommend this http://wampserver.aviatechno.net/

I had problems with updating too, but on this website are Wampserver add-ons like new PHP version (PHP 5.6.40, PHP 7.0.33, PHP 7.1.33, PHP 7.2.34, etc.) And you don't have to manually edit files like php.ini or phpForApache.

You can update

  1. PHP
  2. Phpmyadmin
  3. Apache
  4. Mysql versions
  5. and wamp latest versions

These updates won't affect the existing Databases and files.

Upvotes: 0

pankaj
pankaj

Reputation: 1906

For WAMP Server in sort, I will tell you, make a change these 3 files only. just copy these files from old version and paste into new version.

php.ini
phpForApache.ini
wampserver.conf // do not edit this file only copy and paste

then last step is open php.ini , phpForApache.ini files and only change version like 7.1.9 to 7.2.33.

ok finish. restart your services.. only one thing you have to do that is select PHP-Version from WAMP

Upvotes: 0

Liam Wheldon
Liam Wheldon

Reputation: 755

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

Upvotes: 2

user3241373
user3241373

Reputation: 7

I noticed the apache2 mods were not updated properly going from php 7.0 to 7.2.

I had to remove the files in /etc/apache2/mods-enabled regarding php 7.0, then **sudo apt install libapache2-mod-php7.2 --reinstall** to install the new ones.

Upvotes: -2

RiggsFolly
RiggsFolly

Reputation: 94662

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.

Upvotes: 10

Related Questions