How to Install XAMPP in Ubuntu for Localhost Server

How to Install XAMPP in Ubuntu for Localhost ServerXAMPP is very popular Open-Source Software for the Web Developer. It runs on Windows, Linux, Mac.

4 Steps to Install XAMPP in Ubuntu. [Tested on Ubuntu 14.04 LTS]

  1. Download software in your Download Directory from ApacheFriends.
  2. Open Terminal CTRL + ALT +T . And type cd Downloads.
  3. Next run chmod 755 from your terminal.
  4. Install XAMPP:Run the following command and follow the window.
    sudo ./
N.B.Replace with the similar name of downloaded xampp package.

How to Start and Stop XAMPP in Ubuntu/Linux through Terminal

1. To Start XAMPP - sudo /opt/lampp/xampp start

2. To Stop XAMPP -sudo /opt/lampp/xampp stop

How to Fix XAMPP permission denied /opt/lampp/htdocs Directory in Ubuntu

To fix this (Granting Permission) just run the following command through your Terminal.
sudo chmod -R 777 /opt/lampp/htdocs
Elliyas A.
I am Elliyas Ahmed, Founder of COMPROMATH. Follow me @CSElliyas in Twitter, Facebook, Instagram, LinkedIn.


Announce for Comments: Don't put spam message. We check each comment before publishing.
We allows Videos, Images, GIF in comment.
For Video - Use any YouTube Video link. Example:
For Image - Use image source link that contains .jpg, jpeg, .png, jpeg, .gif . Example: