Tutorial: How to install Xampp on Ubuntu

Step 1: Download the xampp using terminal.
 
wget http://www.apachefriends.org/download.php?xampp-linux-1.7.3a.tar.gz
 
This will start downloading the xampp directly. 
 
Step 2: After the download is completed start the installation process. 
 
For that login  into your root directory
 
cd Desktop
 
Make sure that the D is in capital

Also make sure the downloaded file is in Desktop. If it is in any other location copy and paste 
to the Desktop.

sudo -s


  
Step 3: Installing Xampp in Ubuntu
 
Run the following commands one by one
 
tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt
 
This process will install Xampp into the directory /opt/lampp.
 
Step 4: Solve htdocs trouble 

You won't be able to paste any files or folder into the htdocs due to some permission denied error.
So that you have to fix it by running the following command.

 
sudo chmod 777 -R /opt/lampp/htdocs/
 
Step 5: How to start Xampp in Ubuntu

Run the following command

/opt/lampp/lampp start












Step 6: To Stop Xampp

Run the following command

/opt/lampp/lampp stop 

Thankyou for viewing this tutorial...............

Please make me know if you have any doubts.....

Comments

  1. If you got any error seems like the below

    Starting XAMPP for Linux 1.7.2…
    XAMPP: Another web server daemon is already running.
    XAMPP: Another MySQL daemon is already running.

    Try the following command before starting the xampp in terminal.

    1) To stop apache2 server. Just type in terminal:

    sudo /etc/init.d/apache2 stop

    The web server apache2 will be stopped now.

    2) To stop MySQL. Just type in terminal:

    sudo /etc/init.d/mysql stop

    Now start your xampp/lampp using
    sudo /opt/lampp/lampp start

    ReplyDelete

Post a Comment