how to upgrade PHP without reinstalling of current xampp
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Enthusiast
- Posts: 127
- Joined: Tue Oct 02, 2007 3:19 am
how to upgrade PHP without reinstalling of current xampp
I am getting the following error after upgrading J to 3.8.3. I am searching on how I could upgrade my PHP to address this error without reinstalling my XAMPP.
"Error
We have detected that your server is using PHP 5.5.38 which is obsolete and no longer receives official security updates by its developers. The Joomla! Project recommends upgrading your site to PHP 5.6 or later which will receive security updates at least until 2018-12-31. Please ask your host to make PHP 5.6 or a later version the default version for your site. If your host is already PHP 5.6 ready please enable PHP 5.6 on your site's root and 'administrator' directories – typically you can do this yourself through a tool in your hosting control panel, but it's best to ask your host if you are unsure."
protostar 1.0 | J 3.8.3 | xampp control panel v3.2.2
"Error
We have detected that your server is using PHP 5.5.38 which is obsolete and no longer receives official security updates by its developers. The Joomla! Project recommends upgrading your site to PHP 5.6 or later which will receive security updates at least until 2018-12-31. Please ask your host to make PHP 5.6 or a later version the default version for your site. If your host is already PHP 5.6 ready please enable PHP 5.6 on your site's root and 'administrator' directories – typically you can do this yourself through a tool in your hosting control panel, but it's best to ask your host if you are unsure."
protostar 1.0 | J 3.8.3 | xampp control panel v3.2.2
- leolam
- Joomla! Master
- Posts: 20652
- Joined: Mon Aug 29, 2005 10:17 am
- Location: Netherlands/ Germany/ S'pore/Bogor/ North America
- Contact:
Re: how to upgrade PHP without reinstalling of current xampp
Just upgrade your PHP version in Xampp to PHP 7.1
Leo
Leo
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
-
- Joomla! Enthusiast
- Posts: 127
- Joined: Tue Oct 02, 2007 3:19 am
Re: how to upgrade PHP without reinstalling of current xampp
hi leo you mean upgrade the xampp itself? is there a way to only upgrade the PHP?
i tried following the below but not really working after. Apache was not restarting after stopping the service.
i tried following the below but not really working after. Apache was not restarting after stopping the service.
source: https://stackoverflow.com/questions/215 ... or-windowsSimplest method to upgrade PHP in XAMPP:
Download latest portable version of XAMPP.
Extract the archive(not where XAMPP already installed).
Copy the PHP folder from the extracted archive.
Keep back up of PHP folder which is in installed XAMPP directory. You can backup it like changing the PHP folder name to PHP-old or like PHP-version-number
Paste the PHP folder which you copied from the extracted archive.
Replace the php.ini file with your backup folder php.ini file in case you have changed the default settings earlier.
That's all, start/restart the server.
- AMurray
- Joomla! Exemplar
- Posts: 9713
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: how to upgrade PHP without reinstalling of current xampp
@enticer:
It looks like you have to reinstall XAMPP each time, but that seems complicated (I had issues with XAMPP where re-installation essentially wiped out my MySQL DB's and it took time and effort to restore backups. Maybe I missed some step along with way, but I have since swapped to WAMPServer, and find it easy to add PHP versions to the AMP stack.
You just download the one you want (separate component from the actual WAMPServer application itself), save it into the WAMP folder, then install it - it self-extracts the files to the correct folders. When you restart Apache, you are presented with the new version you can then select to use - and it doesn't uninstall earlier versions which is handy for testing PHP applications on older PHP like 5.6 or 7.0 etc.
It looks like you have to reinstall XAMPP each time, but that seems complicated (I had issues with XAMPP where re-installation essentially wiped out my MySQL DB's and it took time and effort to restore backups. Maybe I missed some step along with way, but I have since swapped to WAMPServer, and find it easy to add PHP versions to the AMP stack.
You just download the one you want (separate component from the actual WAMPServer application itself), save it into the WAMP folder, then install it - it self-extracts the files to the correct folders. When you restart Apache, you are presented with the new version you can then select to use - and it doesn't uninstall earlier versions which is handy for testing PHP applications on older PHP like 5.6 or 7.0 etc.
Regards - A Murray
General Support Moderator
General Support Moderator
-
- Joomla! Enthusiast
- Posts: 127
- Joined: Tue Oct 02, 2007 3:19 am
Re: how to upgrade PHP without reinstalling of current xampp
Thanks AMurray.
will continue to seek about it and check WAMPServer as well.
will continue to seek about it and check WAMPServer as well.
- JAVesey
- Joomla! Hero
- Posts: 2635
- Joined: Tue May 14, 2013 1:21 pm
- Location: Cardiff, Wales, UK
- Contact:
Re: how to upgrade PHP without reinstalling of current xampp
Thisleolam wrote:Just upgrade your PHP version in Xampp to PHP 7.1
PHP 7.1.12 is the latest stable version released at the beginning of December 2017. It might not have made it into current AMP (WAMP, XAMPP, MAMP) products yet, though, e.g. MAMP is at 7.1.8
PHP 7.2.0 was released at the same time, but I'd stick with 7.1 (or, for testing purposes, match the version that your live site uses) until you're sure that your local Joomla installation runs error free on 7.2.0
John V
Cardiff, Wales, UK
Joomla 5.1.0 "live" site on PHP 8.2.15 and MariaDB 10.11.7
Joomla 5.1.0 on XAMMP for OSX with PHP 8.2.4 and MariaDB 10.4.28
Cardiff, Wales, UK
Joomla 5.1.0 "live" site on PHP 8.2.15 and MariaDB 10.11.7
Joomla 5.1.0 on XAMMP for OSX with PHP 8.2.4 and MariaDB 10.4.28
-
- Joomla! Enthusiast
- Posts: 127
- Joined: Tue Oct 02, 2007 3:19 am
Re: how to upgrade PHP without reinstalling of current xampp
Uh i will try again using 7.1 because the one i did following the instruction below was php 7.2, you think it will make a difference?
source: https://stackoverflow.com/questions/215 ... or-windowsSimplest method to upgrade PHP in XAMPP:
Download latest portable version of XAMPP.
Extract the archive(not where XAMPP already installed).
Copy the PHP folder from the extracted archive.
Keep back up of PHP folder which is in installed XAMPP directory. You can backup it like changing the PHP folder name to PHP-old or like PHP-version-number
Paste the PHP folder which you copied from the extracted archive.
Replace the php.ini file with your backup folder php.ini file in case you have changed the default settings earlier.
That's all, start/restart the server.
- JAVesey
- Joomla! Hero
- Posts: 2635
- Joined: Tue May 14, 2013 1:21 pm
- Location: Cardiff, Wales, UK
- Contact:
Re: how to upgrade PHP without reinstalling of current xampp
PHP 7.2.0 is about a month old and is the first release of the 7.2 series. It is possible that not all code for all extensions that you might be using will have been updated yet and there might be a few errors and (harmless) warnings thrown. Only you can say for sure whether your site is fully working with this version. If it is then there might be some benefits to using it.enticer wrote:Uh i will try again using 7.1 because the one i did following the instruction below was php 7.2, you think it will make a difference?
The conservative/safer option is to use the latest version of PHP 7.1 series for a little while yet, as per Leolam's recommendation.
John V
Cardiff, Wales, UK
Joomla 5.1.0 "live" site on PHP 8.2.15 and MariaDB 10.11.7
Joomla 5.1.0 on XAMMP for OSX with PHP 8.2.4 and MariaDB 10.4.28
Cardiff, Wales, UK
Joomla 5.1.0 "live" site on PHP 8.2.15 and MariaDB 10.11.7
Joomla 5.1.0 on XAMMP for OSX with PHP 8.2.4 and MariaDB 10.4.28