You are on page 1of 1

Enable auto start of xampp in linux Solution 1: - type in terminal "sudo ln -s /opt/lampp/lampp /etc/init.d/lampp" "sudo update-rc.

d -f lampp defaults" Solution 2: - open /etc/rc.local - add line "/opt/lampp/lampp start" Solution 3: Check run level on linux - type in terminal egrep:initdefault: /etc/inittab - go to /etc/rc.d/rc3.d (replace 3 with the number from the output above) - add line "ln -s /opt/lampp/lampp s99lampp" "ln -s /opt/lampp/lampp K01lampp" Enable auto shutdown on Linux. 1. Switch to super user - type in terminal "sudo su" 2. Add user nobody to authorize shutdown without password -type in terminal "visudo" -add the line "nobody ALL = NOPASSWD: /sbin/shutdown"

PHP Script insert to Vbroadcast/system/Scripts/shutdown.php - exec('sudo /sbin/shutdown -h now');

You might also like