This is a how-to for setting up a web development environment easily. This guide is aimed at a development environment only and should not be used as a public webserver. To setup a public webserver follow the directions on the Ubuntu wiki. The XAMPP project bundles Apache, PHP4 & 5, Perl, mySQL, and a bunch of other utilities/applications into an simple package for Mac OSX, Windows, Solaris, and Linux.

Install Xampp:
Download the latest version of Xampp from SourceForge. Extract the archive using the following commands:
sudo tar xvfz xampp-linux-x.x.xx.tar.gz -C /opt
That’s all. XAMPP is now installed below the /opt/lampp directory.
Start & Stop Xampp:
To start it up, open a terminal and type this:
sudo /opt/lampp/lampp start
To stop it, open a terminal and type this:
sudo /opt/lampp/lampp stop
Test Xampp:
OK, that was easy but how can you check that everything really works? Just type in the following URL at your favourite web browser:
Xampp Control Panel:

In Windows we got nice control panel for Xampp and we can have the same thing inside linux. Simply type this:
sudo gedit ~/.local/share/applications/xampp-control-panel.desktop
And copy and paste the following into the open file and save and exit.
[Desktop Entry]
Categories=GNOME;GTK;Development;
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
“XAMPP Control Panel” will show up in your applications menu under Programming. Use the Menu Editor to move it around.














0 Responses to “How To: Install Xampp In Ubuntu”