XAMPP Auto Start on Ubuntu

Run the command below first:

sudo nano /etc/systemd/system/xampp.service

If you have gedit, you can use gedit instead of nano

Copy and paste the code below into the text editor and save

[Unit]
Description=XAMPP
[Service]
ExecStart=/opt/lampp/lampp start ExecStop=/opt/lampp/lampp stop
Type=forking
[Install]
WantedBy=multi-user.target

Now run the command below to check the service status.

systemctl status xampp.service

If it’s not running you can start the service like below:

systemctl start xampp

You can use stop instead of start if you’d like stop xampp service, then start with start command.

And when you want to restart xampp (restarts both apache and mysql) you can run:

systemctl restart xampp

That’s all.

4 responses

  1. May I simply say what a comfort to discover somebody who genuinely knows what they are talking about over the internet. You actually understand how to bring a problem to light and make it important. More people ought to check this out and understand this side of the story. I cant believe you arent more popular because you surely possess the gift.

  2. agh5feim4

    Everything is very open with a really clear description of the issues. It was definitely informative. Your site is useful. Thank you for sharing!

    1. Though this comment looks you were trying to get backlink, I removed the link and approved the comment. Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *