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:
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
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
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
PHP
Phpmyadmin
Apache
Mysql versions
and wamp latest versions
These updates won't affect the existing Databases and files.
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.
Related
I'm running Uwamp server under windows7 and it works perfectly with php versions from 5.5 to 7.0.3 and with curl enabled.
When I switch to php 7.2, 7.3 or latest 7.4.3 uwamp server still working - but without curl.
php_curl.dll file is enabled under extensions (ext) but phpinfo() confirms that curl extension is missing / not enabled. I compared php.ini with previous php versions, modified it but it still doesn't work.
cURL is NOT installed on this server
I have testet xampp and this server has no problem with curl and php 7.3/7.4. I compared php.ini etc. but curl extension still not working under Uwamp.
It seems that the author of the project has abandoned it, because there have been no updates or activities since many years. Maybe someone using it and can help me to solve it.
Any idea would be greatly appreciated!
finally got a working solution for this problem of uwamp and running an up to date version of php and getting curl working.
I have sat here for a couple of days trying to work why you couldn't get a later version of php 7.0.3 without breaking uwamp and curl. So I learnt how to integrate and test php apache as standalones and then working on updating uwamp. Lots of head scratching of working out how uwamp uses its on the fly configuration setup.
I will list all the steps to update your version of uwamp (to apache 4.2 and php 7.4.4 as of Mar 2020)
Download uwamp (portable or installer)
Download c++ runtime https://aka.ms/vs/16/release/VC_redist.x86.exe (taken from the windows php page)
Install the runtime above
Install uwamp to a directory (in this example will just use c:\ making it install to c:\uwamp after expanding)
Before running uwamp
Goto to apache lounge website and download the latest 32 build of apache (4.2)
https://www.apachelounge.com/download/VS16/binaries/httpd-2.4.41-win32-VS16.zip
Expand this archive, it should create a folder called apache2.4
Step in to this directory and copy all the files and paste them here in your uwamp folder (c:\uwamp\bin\apache). This should overwrite all the apache files and add the latest apachephp dll
TIP. Just make sure you havent expanded the apache2.4 zip in the uwamp apache folder, easy to tell as you will see a apache24 appear
Goto to php.net and download the latest THREAD SAFE version of php (7.4.4)
https://windows.php.net/downloads/releases/php-7.4.4-Win32-vc15-x86.zip
Extract the php zip this folder in to the c:\uwamp\bin\php in to a new folder with name of php-7.4.4 (so the files should be in c:\uwamp\bin\php\php-7.4.4)
There you are, you have completed your manual upgrade of uwamp , run uwamp and if no errors appear with in the GUI, everything should be working. Test by opening a browser and use http://localhost/uwamp/phpinfo or http://127.0.0.1/uwamp/phpinfo or click the "phpinfo button" in the uwamp GUI
This way seems to allowed an upgrade of uwamp (except sql) but resolve a common problem of php and curl not working / breaking.
This works for x86 version installed on a 32/64 bit system.
Still trying to work out the kinks for uwamp to be running 64 bit apache and php but should be possible.
Try and delete the version of PHP that is affected by the missing Curl extension and then re-download the version from inside the AWamp interface. I have had similar problems with other extensions and have solved it this way.
I'm trying to use newest version of Wamp and I also need php7 version.
My problem is:
When start WAMP show me 0xc000007b error
Orange icon - start 2 of 3 service
SHow me the error on PHP path
When try to install 'wampapache' show me again 0xc000007b error
I have Win7 and Service Pack 1 and also all necessary Visual C++ libraries.
WAMPServer runs all its internal scripts using PHP5.6.38 as that is what they have been tested on. It has nothing to do with the version of PHP that will run with your Web Server.
You should never put any version of PHP onto your Windows PATH. WAMPServer is to flexible as it can have any number of versions of PHP installed which you can switch to with a simple menu click. V3 comes with 3 versions of PHP installed out of the box. See this answer for an explanation
If you are getting an 0xc000007b error, then most likely you dont have all the required MSVC RUntime libraries installed OR you didnt when you installed WAMPServer. If you installed them AFTER you installed WAMPServer, then uninstall WAMPServer, delete the wamp folder, and then reinstall WAMPServer AFTER you are sure ALL the MSVC Runtimes are installed. (without them the install can fail to complete all its processes.
You can find a handy utility on the WAMPServer Backup Repo called Checks VC++ packages installed It is down nearly at the bottom of the page.
You can also find a Downloadable ZIP file containing ALL the necessary MSVC Runtimes on the bottom of that page. If the Checker reports any missing MSVC Runtimes, download that too, unzip it and run EACH of the MSVC RUntime Installs in Version order (one by one). If you see a dialog saying this version is already installed, us the REPAIR button and this will ensure it is properly installed and the correct version.
I've downloaded XAMPP ver. 7.2.10 which supposedly has the PHP ver. 7.2.10.
But when I run a composer update on cmd, it says that my PHP version is 7.0.21. I need to have a PHP 7.1.3 in order to run my frameworks.
Is there a way to change the PHP version without installing a new XAMPP? Because I already have the latest version installed and the PHP versions stated in the XAMPP and CMD are different.
Change you Xampserver you can't change php version inside xampserver
you can download from below link
Download xampserver
You can also do it in another way.
Download your desired version of php here and then go to XAMPP folder (most likely C:\xampp).
There, extract the downloaded php file and name it php (paste it in C:\xampp) Then, copy all files from your old php folder and paste it in the new php folder.
Do not replace any files, just copy missing files and if your php version is less than 7, don't forget to edit your httpd-xampp.conf file.
Restart your Apache server and, hopefully, it will work.
Maybe you are using another version of php, check if you have another version installed and see environment variables and path there should tell you the php path used, or maybe you have an apache running, to stop it enter services and stop apache24.
Your Bash/Terminal runs in it's own PHP world.
You can upgrade it with apt-get on XAMPP VM
see here:
https://die-schwarzwald-werbeagentur.zazudesign.de/internet-programmierung/a-working-typo3-9-4-x-composer-installation-on-xampp-osx-php7-2-imagemagick-mariadb.html
After upgrading PHP to 7.2 composer will work. For some reason composer uses the bash PHP-version and not the Apache2-PHP-Version
This question already has answers here:
Best way to Upgrade wamp 2.0 to 2.5
(4 answers)
Closed 4 years ago.
I had faced two problems with Wamp.
1) I cannot upgrade the php version. I tried a recommended way https://john-dugan.com/upgrade-php-wamp/ , but it didn't work.
2) I cannot change the php version from 5.6.16 to 7.0.0 (the default versions of wamp)
These problems showed up when I added a Magento framework in my wamp server. The only version which accepted for Magento setup are 5.6.5, 7.0.2, 7.0.4, 7.0.6
What Can I do?
Via This answer
Download binaries on php.net (ZIP package based on your PC bit That package should php.exe file)
Extract all files in a new folder :C:/wamp/bin/php/php(7.0.0)/
Copy the wampserver.conf from another php folder (like php/php5.6.16/) to the new folder
Rename php.ini-development file to phpForApache.ini
Restart WampServer
If you are using a version of WAMPServer > 3.0 then there are lots of simple php ADDON installs that you can pick from
See SourceForge repo for all the available PHP ADDONS
Or the backup Repo which can be easier to navigate than SourceForge.
These are simply download and run the installs. It will just add another PHP folder in the usual place in the wamp folder structure.
You can then Switch to the new release and back again to older releases using the wampmanager menus.
Note: There are also many versions of Apache and MySQL as well.
And if you upgrade to WAMPServer 3.0.8 (again a simple download and click the install), you can also add MariaDB installs as well.
I want to upgrade to PHP 5.4.0 in XAMPP. I'm using windows operating system. I searched on web, but there was no proper guide for this as it was released recently.
Can anyone give me some instructions on how to upgrade to PHP 5.4.0 in XAMPP (windows)?
Download the latest binary version of PHP (make sure to get the .zip package not the installer)
De-archive it to a directory
Copy the contents of the directory in the php subfolder of your XAMPP installation directory, overwriting the files which are already present
Overwrite the files which are already present in the apache\bin directory with the newer versions.
Now the trick: take the files which have a "_2" in their names (for example php5apache2_2.dll or php5apache2_2_filter.dll), copy them in the apache\bin subdirectory and remove the "_2" part, overwriting the existing files. This is necessary because by XAMPP uses Apache version 2.2 and the files with the 2 prefix are built for Apache 2.0, so you must take the files build for the newer version (which has a different plugin interface) and rename them in the filenames XAMPP expects.
Source
I found a working php_uploadprogress.dll extension for xampp windows with php 5.4 here:
http://www.fsbcomputers.com/php_uploadprogress
there are 32 and 64 bit versions as well as a preview for php 5.5.
By the way, the php build numbers, apache /xampp refers to are:
PHP 5.2: 20060613
PHP 5.3: 20090626
PHP 5.4: 20100525
I hope that you are still following this, I installed php 5.4 on the latest xampp stable with no problem.
Fortunately for you, there is a beta update of xampp which makes life easier. http://www.apachefriends.org/en/xampp-beta.html
Just make sure to make a complete backup of your old xampp directory, and export your old databases so you can import them into your new (updated) mysql installation. Alternatively you do not need to update mysql, I use this beta and I can say that it's pretty solid.
EDIT: The pop-up warning were a problem that I had too, I recommend using the latest beta. But, you can fix the errors and use php 5.4 on your old install (not recommended) by commenting out the following line in php.ini
extension=php_oci8.dll
Change to
;extension=php_oci8.dll
I have done the upgrade in ubuntu. Following are the steps to do the upgrade.
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get install php5
sudo /etc/init.d/apache2 restart