Once you have installed XAMPP on Ubuntu, these are the usual commands used when everything is up and running.
To start XAMPP run the following and the command will return a list of running services:
sudo /opt/lampp/lampp start
To stop XAMPP run the command below and it will return a list of the stopped services.
sudo /opt/lampp/lampp stop
To restart XAMPP run the command below and it will stop and restart the running services.
sudo /opt/lampp/lampp restart
You can also stop/start/restart individual services by appending “apache”, “mysql” or “ftp” to the end.
start
– Start XAMPP (Apache, MySQL and eventually others)
startapache
– Start only Apache
startmysql
– Start only MySQL
startftp
– Start only ProFTPD
stop
– Stop XAMPP (Apache, MySQL and eventually others)
stopapache
– Stop only Apache
stopmysql
– Stop only MySQL
stopftp
– Stop only ProFTPD
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
panel
– Starts graphical XAMPP control panel