Auto start XAMPP on Boot

Written by Yujin Boby

Edit in WordPress

Allow phpMyAdmin remote access on xampp
Restart Services in Xampp Linux

To auto start XAMPP on boot on Ubuntu, create file

vi /etc/systemd/system/xampp.service

Add following content

[Unit]
Description=XAMPP auto start by ServerOk.in

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

[Install]
WantedBy=multi-user.target

Enable xampp with

systemctl enable xampp

start xampp

systemctl start xampp