How to update to a new version of XAMPP for Linux

Problems with the Linux version of XAMPP, questions, comments, and anything related.

How to update to a new version of XAMPP for Linux

Postby meyoda56 » 24. December 2021 12:46

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.
meyoda56
 
Posts: 4
Joined: 24. January 2020 22:34
XAMPP version: 7.3
Operating System: CENTOS 7

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

Postby Nobbie » 24. December 2021 14:09

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.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

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

Postby meyoda56 » 29. December 2021 15:10

Thank you for your advice. It is unfortunate that XAMPP does not provide such utility.
meyoda56
 
Posts: 4
Joined: 24. January 2020 22:34
XAMPP version: 7.3
Operating System: CENTOS 7

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

Postby chrisvaughan » 01. February 2022 08:54

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.
chrisvaughan
 
Posts: 1
Joined: 01. February 2022 08:50
XAMPP version: 8.1.2
Operating System: Windows 11

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

Postby Altrea » 01. February 2022 12:05

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11933
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 41 guests