Home

How to install xampp in ubuntu

Posted by Vishnu | On: Mar 08 2011

Xampp is a free to use web development environment enable you to run local server in your computer.Advantage of Xampp is it has got all the stuffs (MySQL, PHP and Perl) in one package and its distribution is available for all the major Operating systems (Windows,Linux,Mac OS X,Solaris) .In this tutorial we can see how to install Xampp on Ubuntu – Linux for Human Beings!

Download the Latest version of  Xampp For Linux

Once the Download is finish don’t extract the file.Copy and Put it in your Desktop you have downloaded it ( eg: xampp-linux-1.7.4.tar.gz)

Open Terminal (Application—->Accessories—->Terminal)

Run Following Command in Terminal

cd Desktop

NB Make sure the initial letter of Desktop should be in Uppercase.

Now enter the following command in the terminal to install Xampp

sudo tar xvfz xampp-linux-1.7.4.tar.gz -C /opt

Once finished installing enter the following command in terminal to avoid permission denied error while copying files to htdocs (user name you have to  replace with you system user name ref the image below)

chown username -R /opt/lampp/htdocs

Instillation part is done now to start XAMPP services enter the following command in terminal

sudo /opt/lampp/lampp start

It is Done :) You can check it by opening  http://localhost in  your browser

If you wish to have a XAMPP Control Panel icon on your desktop follow this steps

Open terminal and enter the following command

gedit ~/.local/share/applications/xampp-control-panel.desktop

it will open a window copy and past the below code on that and click save as form the file menu and save it on your desktop

[Desktop Entry]
Comment=Start/Stop XAMPP
Name=XAMPP Control Panel
Exec=gksudo "python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py"
Icon[en_CA]=/usr/share/icons/Tango/scalable/devices/network-wired.svg
Encoding=UTF-8
Terminal=false
Name[en_CA]=XAMPP Control Panel
Comment[en_CA]=Start/Stop XAMPP
Type=Application
Icon=/usr/share/icons/Tango/scalable/devices/network-wired.svg

Leave a comment