Auto Start XAMPP at Startup in Ubuntu Linux


Creating script in lower versions

1.

sudo gedit /etc/init.d/lampp

2.

In opened file, add the following lines.
#!/bin/bash
### BEGIN INIT INFO
# Provides: lampp
# Required-Start:    $local_fs $syslog $remote_fs dbus
# Required-Stop:     $local_fs $syslog $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start lampp
### END INIT INFO
/opt/lampp/lampp start

3.

$ls –l /etc/init.d/lampp
$sudo chmod +x /etc/init.d/lampp
$ls –l /etc/init.d/lampp

4.

$sudo update-rc.d lampp defaults

5.

To test this setup, reboot the system with the following command.
$reboot

#https://www.computernetworkingnotes.com/linux-tutorials/auto-start-xampp-at-startup-in-ubuntu-linux.html