Page 1 of 1

How to update to a new version of XAMPP for Linux

PostPosted: 24. December 2021 12:46
by meyoda56
Greetings,

I am sure that is a common tasks as there are new version of XAMPP is released. However, I cannot find any posts here or in FAQ which provide directions on how to upgrade XAMPP to a later version. I hope that I do not have to start from scratch when there is a new version of XAMPP.

I appreciate any help on this.

Please advise.

Re: How to update to a new version of XAMPP for Linux

PostPosted: 24. December 2021 14:09
by Nobbie
meyoda56 wrote:I hope that I do not have to start from scratch when there is a new version of XAMPP.


Sorry for bad news - but actually you have to start from scratch. Xampp does not provide update procedures, you have to uninstall the old release and install the new release. Also backup all your HTML files and PHP scripts, as well as all databases, and maybe some configuration settings.

The "easiest" way for me is to stop Xampp, rename the /opt/lampp folder to /opt/lampp-old (or whatever), then install a new lampp. Finally copy the whole /opt/lampp-old/htdocs folder to the new release (/opt/lampp/htdocs, previously rename the newly installed htdocs folder to htdocs-original or so) and same for the mysql data, copy the whole /opt/lampp-old/var/mysql to /opt/lampp/var/mysql (and also rename mysql folder from newly installed Xampp before). Be sure to keep the same file permissions and users of the copied folders.

If you are lucky, you are done. Try to start Xampp and see, if your projects are running. If it fails, you always can undo the renaming of lampp to lampp-old and restore the old Xampp environment.

Re: How to update to a new version of XAMPP for Linux

PostPosted: 29. December 2021 15:10
by meyoda56
Thank you for your advice. It is unfortunate that XAMPP does not provide such utility.

Re: How to update to a new version of XAMPP for Linux

PostPosted: 01. February 2022 08:54
by chrisvaughan
I find it quite sad that XAMPP does not provide more automatic updates. It almost makes me want to use a different package.
It would be very useful for the less techy people like myself.

Re: How to update to a new version of XAMPP for Linux

PostPosted: 01. February 2022 12:05
by Altrea
chrisvaughan wrote:I find it quite sad that XAMPP does not provide more automatic updates. It almost makes me want to use a different package.
It would be very useful for the less techy people like myself.

Use the tool whatever makes you feel most comfortable. XAMPP never claims to be the one tool fitting all needs.
Providing a fool prove update mechanism would raise the effort to build and test a new XAMPP version significantly.
Just to give you an idea: Bitnami releases 27 different XAMPP Budles (3 different operating systems each with 3 major PHP versions, MAC OSX and Windows each with multiple different installation methods), on a nearly monthly interval.