If you have install and configure xampp on ubuntu or any other linux distribution you might have use terminal for various operation like start and stopping lampp. However Xampp on windows have some graphical interface for this operation. You can simply add graphical use interface for xampp in ubuntu with few codes and tricks. Adding graphical interface gives you flexibility as well as provide simplicity to use the program if you find yourself uneasy messing with the command. Therefore here is the quick tutorial to add graphical user interface for xampp on ubuntu.
1. Open the terminal and paste the following code
sudo gedit ~/.local/share/applications/xampp-control-panel.desktop
2. The text editor will open simply paste the following code to the text editor and save it.
[Desktop Entry] Comment=Start and Stop XAMPP Name=XAMPP Control Panel Exec=gksudo python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py Icon[en_CA]=/usr/share/icons/Humanity/devices/24/network-wired.svg Encoding=UTF-8 Terminal=false Name[en_CA]=XAMPP Control Panel Comment[en_CA]=Start and Stop XAMPP Type=Application Icon=/usr/share/icons/Humanity/devices/24/network-wired.svg
3. You can simply access the xampp control planel in Application>>> Others






on
on
awesome post, thanks this is just what i was look for.
thanks for sharing your idea, I’ve been searching through this one..
Thank you very much :)
I think this tip could be in Apache Friends site.
Thanks worked great, both articles, rare event for this type of article
It worked for me (Ubuntu 10.04 in VBox 4.08)
Many thanks.
a great thanks for you !
Lot’s of thanks
I had to use
sudo gedit /usr/share/applications/xampp-control-panel.desktop
instead of
sudo gedit ~/.local/share/applications/xampp-control-panel.desktop
I used succesfully this guide on a couple of ubuntu version… now I just installed 11.10 and the launcher doesn’t work.. any ideas?
I have tested it with Ubuntu 11.10 with gnome shell and its working fine.
For Ubuntu 11.10 it needs to be in /usr/share/applications
Thanks Buddy..
On Ubuntu 1.7.7 I’ve got the messages!
(gedit:2626): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel’, but failed: Failed to create file ‘/root/.local/share/recently-used.xbel.BI4I5V’: No such file or directory
(gedit:2626): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel’, but failed: No such file or directory
(gedit:2626): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel’, but failed: Failed to create file ‘/root/.local/share/recently-used.xbel.AG545V’: No such file or directory
(gedit:2626): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel’, but failed: No such file or directory
(gedit:2626): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel’, but failed: Failed to create file ‘/root/.local/share/recently-used.xbel.9DTW5V’: No such file or directory
(gedit:2626): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel’, but failed: No such file or directory
(gedit:2626): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel’, but failed: Failed to create file ‘/root/.local/share/recently-used.xbel.A2QT5V’: No such file or directory
sudo /opt/lampp/share/xampp-control-panel/xampp-control-panel.py
By running the above command, you can see the following small application. This is the Xampp Control Panel that we need
If there is an error then first install glade python
sudo apt-get install python-glade2
Create a file with the below contents and write the following ::
[Desktop Entry]
Encoding=UTF-8
Name=Xampp Control Panel
Comment=Start or Stop XAMPP
Exec=gksudo python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py
Icon=/opt/lampp/htdocs/favicon.ico
Categories=Application;Development;Web
Version=1.0
Type=Application
Terminal=0
and name it as xampp.desktop
then in terminal sudo chmod +x xampp.desktop
Thanks! I don’t understand why so many Linux tuts are just plain wrong.
thanks a million dude
Preety awesome I tried it on Ubuntu 11.04 and placed it in ~/usr/share/applications and it worked perfectly…Nice Job :-D
Thanks, Saugat – very handy!
Gracias, pude instalar muy bien desde el xampp, pero al intentar ejecutar e gui, simplemente me pide la contraseña y nada más. No aparece el panel de control
Agradeceré ayuda
Estoy usando UBUNTU 11.10