How to Upgrade to Php 7.2 Version in Xampp

My current php version from xampp (lampp) is 7.0.9 . I would like to upgrade it to 7.2.

I saw this post: , but is not about xampp. Or this one : How to upgrade the php version in Lampp in Ubuntu . That guy needs to upgrade it from 5 to 7. I want from 7.0.9 - 7.2

Or is there a way/trick to have multiple versions of php installed on XAMPP ?

Thank you

2

1 Answer

In the end I found no solutions , I had to reinstall xampp with the latest version. I did it like this :

sudo /opt/lampp/uninstall will keep the htdocs(your project), temp(I have no clue) and var(databases) folder intact then download the latest version from here

sudo chmod 777 your downloaded file
sudo ./your donwloaded file

Be aware that all of your virtual host settings etc will be lost, so It would be wise to have a back up of all of the settings and configurations.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest