How to install xampp in ubuntu

Xampp is an application that helps to run local server in your computer.It is a tedious method to install Apache web server add MYSQL, php, perl and other application. There xampp has all the stuff in one package. Therefore xampp make it easy to install all these package from a single application. Xampp is available for all the format including windows , mac and solaris. In compare to windows and mac the installation of xampp is a bit complicated in linux. If you are searching for lampp. you are in right place because xampp is previously called lampp. To begin the installation download xampp from official website. or download via terminal,
wget http://www.apachefriends.org/download.php?xampp-linux-1.7.3a.tar.gz
1. To install xampp in ubuntu run the following command in terminal which will extract the download file into /opt directory. Paste it on Desktop then run the following Command in terminal,
cd Desktop

sudo -s

tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt
2. After install xampp when you try to paste anything to htdocs you will get permission denied error. Therefore to fix this you have to run the following code in terminal after running the code you can simply put files and folder into htdocs,
sudo chmod 777 -R /opt/lampp/htdocs/
 3. Run the following command in terminal to start lampp,
/opt/lampp/lampp start
You can see further documentation on xampp page if you need more guide to operate xampp on linux
Also see how to add GUI based xamp control panel in ubuntu 

If you get the error "XAMPP: Another web server daemon with SSL is already running" when you run "./lampp start". Simply follow the steps below to get rid of this error:
1. Open the file /opt/lampp/etc/httpd.conf

2. Search the "Listen 80" and change it to some other port (e.g. Listen 2145) (Line No. 40)

3. Open the file /opt/lampp/etc/extra/httpd-ssl.conf

4. Search the "Listen 443" and change it to some other port (e.g. Listen 16443) (Line No. 39)

5. Open the file "/opt/lampp/lampp"

6. Search for the port "testport 80" and replace it to "testport 2145". Also change the "testport 443" to "testport 16443". (Happens to be the Line No. 197, 214)

7. Now go and run "/opt/lampp/lampp start". (It should work now).
Go to your web browser and type http://localhost/ and hit Enter

Enjoy.

Reply to this post

Post a Comment