After searching all over the WWW, I couldn't solve my problem.
I want to launch Xampp via desktop control panel and also I made the xampp-control-panel.desktop in desktop and ~/.local/share/applications/ paths with the text below but no answer:

[Desktop Entry]  
Name=Xampp Control Panel  
Comment=Start or Stop XAMPP  
Exec=gksudo python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py  

I typed the command below:

gksudo python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py  

the answer was:

Error importing pygtk2 and pygtk2-libglade  

and then I tried:

gksudo apt-get install python-glade2  

and eventually when I click on xampp icon my administration password will be asked and when I type it nothing happens.

What can I do to get the control panel working?


2 Answers 2


First of all the xampp folder is /opt/lampp so if you want to create some php files you need to put them in /opt/lampp/htdocs. Don't use var/www or var/www/html

Now to start the graphical interface

cd /opt/lampp
sudo ./manager-linux.run (or manager-linux-x64.run)

If you don't care about the graphical interface and you just want to run xampp then you do

sudo /opt/lampp/lampp start

To create an alias, open a terminal and type:

alias xampp='sudo /opt/lampp/manager-linux-x64.run'

and now every time you type xampp in the terminal, the graphical interface will start!

  • Thanks a lot, I mean World Wide Web by typing WWW ;). Is there anyway to make a shortcut for this control-panel? Best Regards
    – Hossein Sh
    Apr 7, 2014 at 19:08
  • @HosseinSh I edited my answer to include the information you requested
    – Lynob
    Apr 7, 2014 at 20:07
  • 2
    @HosseinSh to create a permanent shortcut askubuntu.com/questions/17536/…
    – Lynob
    Apr 8, 2014 at 19:46

Step 1: at first, open up the terminal and type the following to see if the folder exists or not.

 cd /opt/lampp

Step 2: if exists, then type ls to see the lists of files and folders


Step 3: look for a file manager-linux.run (or manager-linux-x64.run)

Step 4: type

 chmod +x xampp-linux.run

(if the file name is manager-linux.run otherwise type: manager-linux-x64.run as the file name suggests) to make the file executable.

Step 5: execute the file as a superuser.

 sudo ./manager-linux.run

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .