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
#!/bin/bash /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.