Sunday, November 4, 2012

How to install xampp server on linux

How to install XAMPP server on ubuntu or any other Linux Distro

1. Download the XAMPP server bundle.
        
      XAMPP for Linux

2. Login to terminal as root.

      sudo -s

2. Open terminal window and change the directory to the folder where you downloaded the bundle .

3. Then type the following command in the terminal window to extract the contents of the bundle downloaded.

     tar xvfz xampp-linux-1.8.1.tar.gz  -C /opt

this will extract the files to a folder named 'opt' in root directory.

4. and thats it , your XAMPP server is ready , go to the terminal window and just type in

     sudo /opt/lampp/lampp start

this will start the server .

5. To stop the server type in terminal

     sudo /opt/lampp/lampp stop   


** to solve the problem of pasting content in htdocs folder execute the following command in terminal window

     sudo chmod 777 -R /opt/lampp/htdocs/ 

No comments:

Post a Comment