Wednesday, March 14, 2012

How to install xampp on ubuntu

Hello Everyone,
Today we will learn how to install xampp in ubuntu.

1) Simply wget it with this command at terminal
I hope you are logged in with root.

2) After downloading the xampp you can cd to desktop with this command
cd Desktop Now you are at the Desktop.

3) Enter this command to install xampp in ubuntu
tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt 

4) Now your xampp is installed in opt folder. Now in order to create files and folders in htdocs you need to resolve the htdocs trouble. to give permession to htdocs enter this command sudo chmod 777 -R /opt/lampp/htdocs/ 

5) Now if everything is fine with no error then it is time to star the xampp in order to start the xampp please enter this command sudo /opt/lampp/lampp start 

6) So here are some important command to operate xampp from terminal
     i) To stop xampp sudo /opt/lampp/lampp stop
    ii) To restart xampp sudo /opt/lampp/lampp restart 

Now your xampp is installed all you need to do is start working. If you are getting any error while migrating the projects you can always check the error logs.

If you have any problem just mail me

Enjoy & be open.
long live linux.


  1. Can i use this xampp to seeable to all ??? From anywhere in the world ???

    1. Q: This sounds like a home network, correct?

      Q: Do you have a registered domain? Or do you want people to access your site by IP address?

      Your internal, LAN address is 192.168...

      You can find your external ("WAN") address by looking at your router (which may be the Netgear, or might be yet another router - the one built in to your DSL or cable modem).

      You can also find it by pointing your browser here:
      Be advised that, unless you have a "static IP" from your provider, this external address might change at any time. It might stay the same for months ... or it might change multiple times/day. "It depends".

      Be advised, too, that the moment you open anything on your firewall - especially a web site - you leave yourself potentially vulnerable to hackers. You absolutely need to make sure you have adequate security in place to protect against this eventuality.

      Suggestion: look at DynDNS (or alternatives):
      Or just shop around for a web hosting service that appeals to you :)


  2. Hi.. Amit. this is lohith and i am using first time ubantu in my pc.. i want to install xampp and i extracted tar file and i pasted it on desktop.. later i moved to desktop using cd desktop but i am getting like this error msg.. how to install xampp need help>?

    loki@loki-Inspiron-1525:~/Desktop$ tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt
    tar (child): xampp-linux-1.7.3a.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now

    1. Hi Lohith, Please do not extract the file. Just put tar.gz on desktop as it is, and then follow from step No.3

  3. Hi,I have tried to install Xampp 1.7.3 but failed to do it so.The error states "Exiting with failure status due to previous errors."I dont know what do do.Can you just please help me with this?

  4. ERROR 407: Proxy Authentication Required....Error msg. is comming ???