4

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]  
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    

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?

  • Glad I helped :) if I solved the problem please consider accepting my answer so the question would be closed – Lynob Apr 7 '14 at 20:35
17

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 '14 at 19:08
  • @HosseinSh I edited my answer to include the information you requested – Lynob Apr 7 '14 at 20:07
  • 2
    @HosseinSh to create a permanent shortcut askubuntu.com/questions/17536/… – Lynob Apr 8 '14 at 19:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.