installing xampp in linux
Step 1: Download
Simply click on one of the links below. It's a good idea to get the latest version. :)
A complete list of downloads (older versions) is available at SourceForge.
Step 2: Installation
After downloading simply type in the following commands:
- Go to a Linux shell and login as the system administrator root:su
- Extract the downloaded archive file to /opt:tar xvfz xampp-linux-1.8.1.tar.gz -C /opt
Warning: Please use only this command to install XAMPP. DON’T use any Microsoft Windows tools to extract the archive, it won’t work.
Warning 2: already installed XAMPP versions get overwritten by this command.
That’s all. XAMPP is now installed below the /opt/lamppdirectory.
Step 3: Start
To start XAMPP simply call this command:
You should now see something like this on your screen:
Starting XAMPP 1.8.1...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
Ready. Apache and MySQL are running.
If you get any error messages please take a look at the Linux FAQ.
OK, that was easy but how can you check that everything really works? Just type in the following URL at your favourite web browser:
Now you should see the start page of XAMPP containing some links to check the status of the installed software and some small programming examples.
Problem on installation due to permissions If any problem arises like cannot start mysql or any permission try the below commands If Sudo is not installed in your linux machine then try with su replacing sudo sudo chmod -R 777 /opt/lampp sudo chown -hR nobody /opt/lampp sudo chmod -R 755 /opt/lampp