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:


  1. Go to a Linux shell and login as the system administrator root:su


  2. 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:

/opt/lampp/lampp start

You should now see something like this on your screen:

Starting XAMPP 1.8.1...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.

Ready. Apache and MySQL are running.

If you get any error messages please take a look at the Linux FAQ.

* Step 4: Test

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

About pacesettergraam

A good and realistic person

Posted on October 9, 2012, in linux. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: