Auto Start XAMPP at Startup in Ubuntu Linux

Auto Start XAMPP at Startup in Ubuntu Linux

sudo gedit /etc/systemd/system/xampp.service
&
sudo subl /etc/systemd/system/xampp.service

//——————————————

[Unit]
Description=XAMPP

[Service]
ExecStart=/opt/lampp/lampp start
ExecStop=/opt/lampp/lampp stop
Type=forking

[Install]
WantedBy=multi-user.target

//——————————————
sudo systemctl enable xampp.service
sudo systemctl status xampp.service