Skip to content

Instantly share code, notes, and snippets.

@fabiopiovam
Created April 12, 2015 23:20
Show Gist options
  • Save fabiopiovam/3c39edfa8961c69b27cd to your computer and use it in GitHub Desktop.
Save fabiopiovam/3c39edfa8961c69b27cd to your computer and use it in GitHub Desktop.
Running Multiple Versions of XAMPP on Linux
1. Download a version of XAMPP:
- latest version: https://www.apachefriends.org/pt_br/index.html
- older version: http://sourceforge.net/projects/xampp/files/
Consult the best version 4u: http://code.stephenmorley.org/articles/xampp-version-history-apache-mysql-php/
2. Install xampp:
- To older versions:
Use the following command and extract the downloaded distribution into /opt/xampp directory:
sudo tar xvfz xampp-linux-x.x.x.tar.gz -C /opt
- To latest versions, these with .run extensions to downloaded:
chmod 755 xampp-linux-*-installer.run
sudo ./xampp-linux-*-installer.run
3. Start xampp (using xampp-start.sh script):
sudo xampp-start.sh
#!/bin/bash
# SOLUTION FOUND HERE: http://meows.us/my-life/running-multiple-versions-of-xampp-on-ubuntu-linux/
echo
echo "Here's the versions that you have:"
ls -l /opt/xampp | awk '{print $9}'
echo
echo "Which would you like to activate?"
echo
read version
echo
sudo /opt/lampp/lampp stop
sudo rm /opt/lampp
sudo ln -s /opt/xampp/$version /opt/lampp
echo
sudo /opt/lampp/lampp start
echo
echo "Done!"
echo
@farkroft
Copy link

farkroft commented Apr 25, 2019

i cant run the command sudo xampp-start.sh as a superuser or root
can you help me ?

@fabiopiovam
Copy link
Author

i cant run the command sudo xampp-start.sh as a superuser or root
can you help me ?

Hi!
Confirm the permission to execute the script:
$ chmod +x xampp-start.sh

Sorry for the delay.
Sincerely,
Fabio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment