Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade safely php version in wamp server [duplicate]

Tags:

php

wampserver

I downloaded latest wamp server and I installed in my system with php version 5.5.12 and now I want to upgrade php version to 5.5.27 with safely.. How can I upgrade?

like image 445
Srini Avatar asked Aug 04 '15 08:08

Srini


People also ask

Is it safe to update PHP version?

These updates have no effect on most websites, and you may not notice any change at all. Occasionally, a plugin on your WordPress website may misbehave due to incompatibility with a newer PHP version.

Will upgrading PHP break my site?

There are very little chances of a PHP update breaking your WordPress site. However, with the abundance of free and paid plugins, a single line of poor code can result in any of the common WordPress errors. The first thing you need to do is make sure that it is not a plugin or theme causing this error.


2 Answers

For someone who need to update the PHP version in WAMP, I can recommend this http://wampserver.aviatechno.net/

I had a problems with updating too, but on this website are Wampserver addons like new php version (php 7.1.4 etc.) And you don't have to manually edit files like php.ini or phpForApache.

Enjoy!

like image 95
Adam Šipický Avatar answered Sep 30 '22 18:09

Adam Šipický


WAMP server generally provide addond for different php/mysql versions. However you mentioned you have downloaded latest wamp server. As of now, latest Wamp server v2.5 provide PHP version 5.5.12

So you need to upgrade it manually as follow:

  1. Download binaries on php.net
  2. Extract all files in a new folder : C:/wamp/bin/php/php5.5.27/
  3. Copy the wampserver.conf from another php folder (like php/php5.5.12/) to the new folder
  4. Rename php.ini-development file to phpForApache.ini
  5. Done ! Restart WampServer (>Right Mouseclick on trayicon >Exit)

Although not asked, I'd recommend to vagrant/puppet or docker for local development. Check puphpet.com for details. It has slight learning curve but it will give you much better control of different versions of every tool.

like image 26
Kapil Sharma Avatar answered Sep 30 '22 18:09

Kapil Sharma