XAMPP is an application that it would help you to facilitate the hassle of installing Apache web server, MySQL, Perl and PHP individually. This tutorial will show you step by step on how to install XAMPP in Lunix and have it auto started with your computer. This tutorial was tested on Ubunut and Fedora. Replace x.x.x for the XAMPP version.
- Go to
http://www.apachefriends.org/en/xampp-linux.htmland download “XAMPP Linux x.x.x”
- Open up the “
- Become a root user bu typing “
- Type the administrator password
- Go to where the file “
xampp-linux-x.x.x.tar.gz” is downloaded
- Extract the files by typing this “
tar xvfz xampp-linux-1.6.7.tar.gz -C /opt“
Now XAMPP will be under “
/opt/lampp” folder. In order to run XAMPP you will need to run this… “
/opt/lampp/lampp start” as a root. If you want to stop it just replace start for stop.
To test whether your server is up go and open your web browser and type “
http://localhost“. If it works you are now good to go to the next step.
This step is setting up XAMPP security. In order to do that being the root type “
To remove XAMPP from your system type “
rm -rf /opt/lampp“
If you want to have XAMPP starting with your machine when it turns on follow this steps.
- Find out your default runlevel type “
egrep :initdefault: /etc/inittab“
You should no see a line containing a number between two colons. In most cases 3 or 5 (2 if you’re using Debian).
- Go into the directory which configures this runlevel. If for example your runlevel is 3, then you have to change directory into the “
/etc/rc.d/rc3.d” directory.If your system didn’t provide /etc/rc.d/rc3.d please try also /etc/init.d/rc3.d and /etc/rc3.d.
- Now setup XAMPP to start when your computer turns on type”
ln -s /opt/lampp/lampp S99lampp“
ln -s /opt/lampp/lampp K01lampp“
Now XAMPP should start and stop automatically if you boot or shutdown your machine.
And that’s it. Hopefully you had success like I did 😛