Ubuntu – How to upgrade Xampp to the newest version

12.04command lineupgradexampp

This might seem like a silly question but by golly I've tried and tried for a whole week and no results.
I don't know if it's something wrong with my queries, or too much "Install Xampp" clutter in my search results (and not Upgrade Xampp) – But I just can't find a solution that works on my server.

I've got Ubuntu Server 12.04 (Terminal only), and on it phpstatus = 5.4.7 (i.e. Xampp version is 5.4.7).

I want to upgrade said Xampp (Lampp…) to the latest, which according to the file downloaded from apachefriends com – is 5.6.3

I've tried the following two sets of instructions (which strangely enough are the ONLY ones I managed to find online) to no avail. After using either apt-get or the bitnami GUI (via SSH with PuTTy + Xming) – the command phpstatus still outputs 5.4.7

I've even tried both methods under the actual root user on the device. No success there either.

After reading the apachefriends FAQ I thought that in order to upgrade, all I need to do is install Xampp in it's newest version right over the old Xampp installation. But maybe it's not the case?

Please – I need some help here. How do I upgrade my Xampp and why isn't it working with the methods I've tried?

Here are the two methods I've tried. Copied directly as I found them online:

Ensure the XAAMP repository is added:

sudo add-apt-repository ppa:upubuntu-com/xampp

Then update with:

sudo apt-get update

That was one method, here's the other:

How do I install XAMPP?

Choose your flavor for your linux OS, the 32-bit or 64-bit version.

Change the permissions to the installer

chmod 755 xampp-linux-*-installer.run

Run the installer

sudo ./xampp-linux-*-installer.run

That's all. XAMPP is now installed below the /opt/lampp directory.

What could I be missing?

Best Answer

Uninstall lampp with the following command:

sudo /opt/lampp/uninstall

This will keep untouched three folders in your installation directory (htdocs, temp and var). Htdocs is the folder which contains the files and var is the folder which contains the databases of all your projects.

Afterwards, change the permissions of the installer you downloaded

chmod 755 xampp-linux-*-installer.run

and run the installer

sudo ./xampp-linux-*-installer.run

All done. XAMPP is now installed under /opt/lampp directory.

Related Question