Linux / Ubuntu

Auto Start XAMPP on Linux (Ubuntu)

In Ubuntu XAMPP will not auto start on boot or reboot in usual Installation. We should manually enter command to start the XAMPP.

In most cases command will be as follow as

sudo /opt/lampp/lampp start

For Auto-start on boot/reboot, the following process will worked for me in Ubuntu 13.04 and XAMPP 1.8.1.

1. Create a script in init.d called lampp
sudo gedit /etc/init.d/lampp

2. Paste this code on the script and save

/opt/lampp/lampp start

3. Give -x permissions to the file
sudo chmod +x /etc/init.d/lampp

4. Use update-rc.d to install init scripts to all runlevel by typing
sudo update-rc.d lampp defaults

This really works in ubuntu 13.04. Make sure the XAMPP Start command is correct for your system.


2 thoughts on “Auto Start XAMPP on Linux (Ubuntu)

  1. Pingback: Making LAMPP/XAMPP start at boot in linux (ubuntu, xubuntu) | chuvanvu

Leave a Reply

Please log in using one of these methods to post your comment: Logo

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

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s