I also included other scripts to fix common issues.
You can download the scripts here:
http://mir.cr/059OV1D3 ( 1KB )
To install xampp just put the scripts in the same folder as "xampp-linux-1.7.3a.tar.gz" and double click on the script. ( more details included with the download )
Here are the content of the scripts:
install script:
- Code: Select all
#going into working directory
working_directory=$(pwd)
cd $working_directory
#getting current user
user=$(logname)
#installing xampp
sudo tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt
sudo /opt/lampp/lampp start
#adding xampp to startup
sudo ln -s /opt/lampp/lampp /etc/init.d/lampp
sudo update-rc.d -f lampp defaults
#fixing access forbidden to localhost
sudo chmod -R 705 /opt/lampp/htdocs
#giving editing rights to user
sudo chown -R $user /opt/lampp/htdocs
echo "Xampp installed"
uninstall script:
- Code: Select all
sudo /opt/lampp/lampp stop
sudo rm -rf /opt/lampp
echo "Xampp uninstalled"
I hope this will help some people.
I think this should be included with xampp download ;P