XAMPP, a free open source cross platform web server solution stack package, consisting mainly of the Apache HTTP Server, MySQL database, and interpreters for scripts (PHP script). XAMPP is plenty helpful when you don’t want to install Apache, MySQL, and PHP individually, or if you want portability. However, it is strongly recommended to install Apache, MySQL, and PHP and configure it by yourself.
In this article we will discuss about how to install XAMPP for Ubuntu manually by downloading the binary. Any Ubuntu version and any architecture is fine. However in this article I will use Ubuntu 12.10 desktop edition.
Obtain the Material
Download XAMPP for Linux from here. The latest is recommended. At the time of writing this article, the latest version is 1.8.2. For Ubuntu 32 bit you can download this version, while 64-bit user can download this version. Both will bring you to sourceforge page of the corresponding version.
The rest of this article will assume you have download the installer. For simplicity, I also refer the installer file as xampp.run, regardless the version.
Open up terminal, and switch to super user (root). The rest of this article will assume we are as root account.
Go to the directory where the xampp.run is and make sure xampp.run is executable. Then run the installer.
chmod +x xampp.run ./xampp.run
When the installation finish, you can find XAMPP on /opt/lampp directory.
To start XAMPP, simply invoke following command:
You should see something like this:
Starting XAMPP 1.8.2... LAMPP: Starting Apache... LAMPP: Starting MySQL... LAMPP start
Now, check your browser. Type in URL bar http://localhost/ and you would see something like this:linux, ubuntu, xampp