Running XAMPP on Ubuntu using Terminal

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

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

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

Published by

Keith Greer

Senior PHP and Magento Web Developer in Belfast, Northern Ireland.