How To Install Xampp In Ubuntu

| 1 min read
Xampp Featured Image

To begin the installation download xampp from official website.

Now follow the steps to install xampp:

Place your downloaded xampp tar.gz file in Desktop folder. Open terminal [ctrl+alt+T]. Now run below command in terminal.

cd Desktop

[ D is capital in Desktop]

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

(Note: This version will install xampp 1.8.1 version If you want to install another version then replace xampp-linux-1.8.1.tar.gz with your version).

sudo chmod 777 -R /opt/lampp/htdocs

Installing process finished. Now you can start xampp. To start type following command in terminal.

sudo /opt/lampp/lampp start

Xampp server will as follows:

(Starting XAMPP for Linux 1.8.1... XAMPP: Starting Apache with SSL (and PHP5)... XAMPP: Starting MySQL... XAMPP: Starting ProFTPD... XAMPP for Linux started.)

To stop type following command in terminal.

sudo /opt/lampp/lampp stop