Created
April 12, 2015 23:20
-
-
Save fabiopiovam/3c39edfa8961c69b27cd to your computer and use it in GitHub Desktop.
Running Multiple Versions of XAMPP on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
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
i cant run the command sudo xampp-start.sh as a superuser or root
can you help me ?