How To Create XAMPP Control Panel Launcher On Ubuntu

05-09-2015

Install

1. Open Terminal by pressing Ctrl + Alt + T and type following command:

sudo gedit ~/.local/share/applications/xampp.desktop

When text editor opens simply paste the following

[Desktop Entry]
Comment=Start and Stop XAMPP
Name=XAMPP Control Panel
Exec=sudo -i python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py
Icon=/usr/share/icons/Humanity/devices/24/network-wired.svg
Encoding=UTF-8
Terminal=false
Name=XAMPP Control Panel
Comment=Start and Stop XAMPP
Type=Application
Icon=/opt/lampp/htdocs/favicon.ico

2. Change the file permission so that it can execute

sudo chmod +x  ~/.local/share/applications/xampp.desktop

If you have a problem with executing the program, install gksu, and in the forth line, replace sudo -i with gksudo. Below is how to install gksu if not installed, since it has been removed from 13.04.

sudo apt-get install gksu

If you don’t have python-glade package, the above command exists with an error code. To install python-glade use the following command

sudo apt-get install python-glade2

3. If first step and second step is successfull, type Xampp in Dash

Remove

If you want to remove XAMPP Launcher run following command:

cd ~/.local/share/applications/
sudo rm xampp-control-panel.desktop

© 2019 All rights reserved. Codesenior.COM