Home » Web Programming » Install XAMPP 1.7.7 Ubuntu 12.04/11.10 via PPA

Install XAMPP 1.7.7 Ubuntu 12.04/11.10 via PPA

XAMPP is a fantastic utility for webdevelopers in various platforms. It works on Ubuntu, Fedora, Windows, Mac etc… A developer will get a same environment and same commands in all operating systems. XAMPP is created by ApacheFriends. In Ubuntu 12.04 it is a great platform with power pack.

XAMPP 1.7.7 Installation on Ubuntu 12.04

Installting XAMPP is just a breeze. Download the latest stable file extract it to opt and start it.

Download XAMPP Linux 1.7.7

  1. Go to a Linux shell and login as the system administrator root:su
  2. Extract the downloaded archive file to /opt:
    tar xvfz xampp-linux-1.7.7.tar.gz -C /opt

Warning:Please use only this command to install XAMPP. DON’T use any Microsoft Windows tools to extract the archive, it won’t work.

Install XAMPP Using PPA


Open the terminal and run these commands to install XAMPP 1.7.7 in Ubuntu 12.04/11.10:

sudo add-apt-repository ppa:upubuntu-com/web
sudo apt-get update
sudo apt-get install xampp

That is it . Your XAMPP is on the opt directory. You can now start XAMPP with this command:

sudo /opt/lampp/lampp start

Then start your web browser and go to localhost


If your XAMPP is working successfully then you will see this page:


The root directory of PHP projects is



If you want to store your files in the home directory, you can simply create a directory called  public_html with this command:

mkdir ~/public_html

Link now this folder to your root web directory with this command:

sudo ln -s ~/public_html /opt/lampp/htdocs/$USER

You can now move your  files and projects in the public_html folder located in the home directory. Then access them at this address:


NOTE: Replace “username” with your own user name.

Commands for XAMPP

To stop XAMPP, use this command:

sudo /opt/lampp/lampp stop

To restart XAMPP:

sudo /opt/lampp/lampp restart

MySQL administrator username is root without password.

ProFTPD uses lampp as password and nobody as user.

To start Apache:

sudo /opt/lampp/lampp startapache

To stop Apache:

sudo /opt/lampp/lampp stopapache

– To start MySQL:

sudo /opt/lampp/lampp startmysql

– To stop MySQL:

 sudo /opt/lampp/lampp stopmysql
File/Directory Purpose
/opt/lampp/bin/ The XAMPP commands home. /opt/lampp/bin/mysql calls for example the MySQL monitor.
/opt/lampp/htdocs/ The Apache DocumentRoot directory.
/opt/lampp/etc/httpd.conf The Apache configuration file.
/opt/lampp/etc/my.cnf The MySQL configuration file.
/opt/lampp/etc/php.ini The PHP configuration file.
/opt/lampp/etc/proftpd.conf The ProFTPD configuration file. (since 0.9.5)
/opt/lampp/phpmyadmin/config.inc.php The phpMyAdmin configuration file.

For more commands and details, check this page.

To uninstall XAMPP 1.7.7, run this command:

sudo apt-get remove xampp

Then restart your computer to kill any running XAMPP daemon.

Enhanced by Zemanta

1 thought on “Install XAMPP 1.7.7 Ubuntu 12.04/11.10 via PPA”

  1. Xampp wont start in Ubuntu 12.04 64 bits:

    XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.