Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
19
rated 0 times [  19] [ 0]  / answers: 1 / hits: 50373  / 2 Years ago, sun, april 17, 2022, 1:51:53

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?


More From » launcher

 Answers
4

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!


[#26151] Monday, April 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
impisaso

Total Points: 423
Total Questions: 106
Total Answers: 104

Location: Virgin Islands (U.S.)
Member since Tue, Feb 2, 2021
3 Years ago
;