19 May 2012
How To Install XAMPP 1.7.7 Via PPA On Ubuntu 12.04/11.10
We have previously seen the manual installation of XAMPP 1.7.7 under Ubuntu, you can check the tutorial here. Today we will see how to install XAMPP 1.7.7 automatically via a PPA. This will surely save you time and effort, and will help you easily install/remove XAMPP from your system.
UPDATE: XAMPP 1.8.0 Available
XAMPP 1.7.7 Installation
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
You can now start XAMPP with this command:
sudo /opt/lampp/lampp start
Then start your web browser at this address to test XAMPP:
http://localhost
If the installation is successful, you will see this page:
You can now move your projects (scripts, PHP files, HTML files, etc.) to this root web directory:
/opt/lampp/htdocs/
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:
http://localhost/username/
NOTE: Replace "username" with your own user name.
Some Useful Commands & Details
- 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/stop Apache:
sudo /opt/lampp/lampp startapache
sudo /opt/lampp/lampp stopapache
- To start/stop MySQL:
sudo /opt/lampp/lampp startmysql
sudo /opt/lampp/lampp stopmysql
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.
That's it!








