XAMPP is an Acronym for X(to be read as Cross for cross platform), Apache HTTP server, MySQL, PHP and Perl. It is a free open source cross platform web server solution stack package.
From XMAPP version 1.8.2 for linux, the installation process had changed. Previously it was extraction of the tar file to any desired location but now it is by running an executable which pops up a gui window for selecting the components you want to install giving it a windows like feel.
From XMAPP version 1.8.2 for linux, the installation process had changed. Previously it was extraction of the tar file to any desired location but now it is by running an executable which pops up a gui window for selecting the components you want to install giving it a windows like feel.
Follow below steps to install XAMPP:
- Download the latest version from Apache Friends
- Once the download is complete open the terminal and login as root using the command
su - If this is the first time that you are using the su command then you will have to first set it using the command
sudo passwd root - Goto the directory in which the installer file was downloaded
- Change the permissions to the installer using the command
chmod 755 xampp-linux-version-installer.run - Run the installer using the command
This will install the xampp server in the /opt/lampp directory./xampp-linux-version-installer.run - Modify permissions of htdocs folder using the command
sudo chmod 777 -R /opt/lampp/htdocs/ - Start server using command
sudo /opt/lampp/lampp start - To test if the server is installed type localhost in the browser, the xampp welcome page must be displayed.
The various start-stop parameters of lampp are:
| Parameter | Functionality |
|---|---|
| start | Start XAMPP (Apache, MySQL and eventually others) |
| startapache | Start only Apache |
| startmysql | Start only MySQL |
| startftp | Start only ProFTPD |
| startwebmin | Start only Webmin |
| stop | Stop XAMPP (Apache, MySQL and eventually others) |
| stopapache | Stop only Apache |
| stopmysql | Stop only MySQL |
| stopftp | Stop only ProFTPD |
| stopwebmin | Stop only Webmin |
| reload | Reload XAMPP (Apache, MySQL and eventually others) |
| reloadapache | Reload only Apache |
| reloadmysql | Reload only MySQL |
| reloadftp | Reload only ProFTPD |
| restart | Stop and start XAMPP |
| security | Check XAMPP's security |
| enablessl | Enable SSL support for Apache |
| disablessl | Disable SSL support for Apache |
| backup | Make backup file of your XAMPP config, log and data files |
| oci8 | Enable the oci8 extenssion |
To uninstall XAMPP use the command
| sudo rm -rf /opt/lampp |
|---|