Once you have installed XAMPP on Ubuntu, these are the usual commands used when everything is up and running.

Important Commands

How to start XAMPP in Ubuntu

To start XAMPP run the following and the command will return a list of running services:

sudo /opt/lampp/lampp start

Start XAMPP

How to stop XAMPP in Ubuntu

To stop XAMPP run the command below and it will return a list of the stopped services.

sudo /opt/lampp/lampp stop

Stop XAMPP

How to restart XAMPP in Ubuntu

To restart XAMPP run the command below and it will stop and restart the running services.

sudo /opt/lampp/lampp restart

Apache, MySQL and FTP

You can also stop/start/restart individual services by appending “apache”, “mysql” or “ftp” to the end.

Ubuntu Help screen for XAMPP

Starting

start – Start XAMPP (Apache, MySQL and eventually others)

startapache – Start only Apache

startmysql – Start only MySQL

startftp – Start only ProFTPD

Stopping

stop – Stop XAMPP (Apache, MySQL and eventually others)

stopapache – Stop only Apache

stopmysql – Stop only MySQL

stopftp – Stop only ProFTPD

Restart

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

SSL & Security

security – Check XAMPP’s security

enablessl – Enable SSL support for Apache

disablessl – Disable SSL support for Apache

Config

backup – Make backup file of your XAMPP config, log and data files

oci8 – Enable the oci8 extenssion

GUI Panel

panel – Starts graphical XAMPP control panel