Operate XAMPP in Ubuntu using command line


In Windows OS XAMPP provide us a simple GUI to operate it. In Ubuntu you can use Terminal to operate xampp server . Press Ctrl+Alt+T button from keyboard to start Terminal window.

You can operate XAMPP server in ubuntu using following command.
Syntax: sudo /opt/lampp/lampp <action>

For example:

to start XAMPP server write following command in terminal
sudo /opt/lampp/lampp start

start xampp in ubuntu
start xampp in ubuntu

to stop XAMPP server write following command in terminal
sudo /opt/lampp/lampp stop


Following list shows command list

Action Action Detail
XAMPP Start Commands
start Start XAMPP (Apache, MySQL and eventually others)
startapache Start only Apache
startssl Start only SSL support
startmysql Start only MySQL
startftp Start only ProFTPD
XAMPP Stop Commands
stop Stop XAMPP (Apache, MySQL and eventually others)
stopapache Stop only Apache
stopssl Stop only SSL support
stopmysql Stop only MySQL
stopftp Stop only ProFTPD
XAMPP Reload Commands
reload Reload XAMPP (Apache, MySQL and eventually others)
reloadapache Reload only Apache
reloadmysql Reload only MySQL
reloadftp Reload only ProFTPD
Other Commands
restart Stop and start XAMPP
security Check XAMPP’s security
php5 Activate PHP5
phpstatus Which version of PHP is active?
backup Make backup file of your XAMPP config, log and data files
panel Starts graphical XAMPP control panel
Advertisements

2 thoughts on “Operate XAMPP in Ubuntu using command line”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s