Xampp Control Panel Can Not Launch

49,280

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!

Share:
49,280
Hossein Sh
Author by

Hossein Sh

Updated on September 18, 2022

Comments

  • Hossein Sh
    Hossein Sh over 1 year

    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?

  • Hossein Sh
    Hossein Sh about 10 years
    Thanks a lot, I mean World Wide Web by typing WWW ;). Is there anyway to make a shortcut for this control-panel? Best Regards
  • Lynob
    Lynob about 10 years
    @HosseinSh I edited my answer to include the information you requested