Automatically startup XAMPP Control Panel on each startup

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Automatically startup XAMPP Control Panel on each startup

Postby ino_mart » 25. January 2024 11:28

All

I use Ubuntu 22.04.3 LTS on which I installed XAMPP 8.2.0-0. I want to have XAMPP Control Panel automatically startup each time I log in. So a command as next should be executed: sudo /opt/lampp/manager-linux-x64.run
It is not the intention to startup up the background services at startup. I want the have this specific application to be started up in which I manually click on "start all".

I found a dozens of solution on the internet, but none of they work. Or XAMPP does not startup after loggin, or I get errors such as "service is not transient", "file does not exist", ...

https://community.apachefriends.org/f/viewtopic.php?f=17&t=49647

https://askubuntu.com/questions/890818/ubuntu-16-04-how-to-start-xampp-control-panel

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

https://gist.github.com/dhavalv/e9e4390b46dce44cb2e8a04ebd1b5aa9

and so one
ino_mart
 
Posts: 1
Joined: 25. January 2024 10:55
XAMPP version: 8.2.0-0
Operating System: Ubuntu 22.04.3 LTS

Re: Automatically startup XAMPP Control Panel on each startu

Postby MilesWeb » 29. January 2024 07:10

Here are some steps you can follow,
1. create a file:
Code: Select all
sudo nano /usr/share/applications/xampp-control-panel.desktop

2. paste following code,
Code: Select all
Name=XAMPP Control Panel
Exec=sudo /opt/lampp/manager-linux-x64.run
Icon=/opt/lampp/htdocs/favicon.ico   # Optional icon path
Type=Application
StartupNotify=false
Categories=Development;

3. save file

4. now add entry to application,
- enter "XAMPP Control Panel" as name
- enter
Code: Select all
/usr/share/applications/xampp-control-panel.desktop

- add

check it out, & let us know if this works for you.
MilesWeb: Your Hosting, Our Responsibility!!
User avatar
MilesWeb
 
Posts: 10
Joined: 19. January 2024 10:40
XAMPP version: 8.0.30
Operating System: linux


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 69 guests