Guide to using XAMPP for Linux
This article covers some need-to-know information if you're using XAMPP for Linux.
Since there's no GUI for XAMPP for Linux, you will need to use commands to control XAMPP.
Also the files are placed a little differently than on Windows and you'll need to access those as well.
I've listed all of the necessary commands and directories below.
XAMPP
This part of the article will cover some need-to-know things regarding XAMPP for Linux.
START/STOP XAMPPSERVER
These commands are used following /opt/lampp/lampp. Example: /opt/lampp/lampp start
| Parameter | Description |
| start | Starts XAMPP. |
| stop | Stops XAMPP. |
| restart | Stops and starts XAMPP. |
| startapache |
Starts only the Apache. |
| startssl | Starts the Apache SSL support. This command activates the SSL support permanently, e.g. if you restart XAMPP in the future, SSL will stay activated. |
| startmysql | Starts only the MySQL database |
| startftp | Starts the ProFTPD server. Via FTP you can upload files for your web server (user nobody, default password lampp). This command activates the ProFTPD permanently, e.g. if you restart XAMPP, FTP will stay activated. |
| stopapache | Stops the Apache. |
| stopssl | Stops the Apache SSL support. This command deactivates the SSL support permanently, e.g. if you restart XAMPP in the future, SSL will stay deactivated. |
| stopmysql | Stops the MySQL database. |
| stopftp | Stops the ProFTPD server. This command deactivates the ProFTPD permanently, e.g. if you restart XAMPP, the FTP will stay deactivated. |
| security | Starts a small security check program. |
IMPORTANT DIRECTORIES AND FILES
| /opt/lampp/bin/ | The XAMPP commands home folder. |
| /opt/lampp/htdocs/ | The Apache DocumentRoot directory. |
| /opt/lampp/etc/httpd.conf | The Apache configuration file. |
| /opt/lampp/etc/my.conf | The MySQL configuration file. |
| /opt/lampp/etc/php.ini | The PHP configuration file. |
| /opt/lampp/etc/proftpd.conf | The ProFTPD configuration file. (since 0.9.5) |
| /opt/lampp/phpmyadmin/ config.inc.php |
The phpMyAdmin configuration file. |
UNINSTALL XAMPP
To uninstall XAMPP, type:
rm -rf /opt/lampp






