Follow these instructions:
1) find out your default runlevel by typing the following command.
- Code: Select all
egrep :initdefault: /etc/inittab
it will return the following, but the number may be different (usually 2,3 or 5)
id:5:initdefault:
2) Using the number quoted above, change directory to /etc/rc#.d
- Code: Select all
#remember to change the number to match your runlevel
cd /etc/rc5.d
3) Use the following commands to automatically start and stop XAMPP
- Code: Select all
ln -s /opt/lampp/lampp S99lampp
ln -s /opt/lampp/lampp K01lampp
4) Test it, and make sure its working properly.