Ubuntu 16.04 - How to start xampp control panel
Solution 1
First of all you need to install gksu with the following command:
sudo apt-get install gksu
Then, run:
gksu gedit /usr/share/applications/xampp-control-panel.desktop
and save the following code in the file.
(You are using 64 bit system so there is no need to change anything, simply do copy paste)
[Desktop Entry]
Encoding=UTF-8
Name=XAMPP Control Panel
Comment=Start and Stop XAMPP
Exec=gksudo /opt/lampp/manager-linux-x64.run
Icon=/opt/lampp/htdocs/favicon.ico
Categories=Application
Type=Application
Terminal=false
Note: For 32 bit xampp type "manager-linux.run" at place of "manager-linux-x64.run"
Run following command in terminal:
sudo apt-get update
Now check applications, its icon has been created.
It will not create icon on desktop, it will create a entry in applications search as shown in the screenshot.
I have checked your directory it is correct, but some folders of xampp are missing. Check mine and compare.
To uninstall your current xampp
Copy paste below commands in terminal and hit enter button.
sudo -i
cd /opt/lampp
sudo ./uninstall
To install XAMPP
Search `xampp-linux-x64-5.6.30-0-installer.run` in Google and download it. Then run:
chmod +x xampp-linux-x64-5.6.30-0-installer.run
sudo ./xampp-linux-x64-5.6.30-0-installer.run
Check if the following command runs or not:
sudo /opt/lampp/lampp start
also check in this way if it works or not:
Solution 2
You can use one of the commands below.
-
If you use a 32-bit system:
sudo /opt/lampp/manager-linux.run
-
If you use a 64-bit system:
sudo /opt/lampp/manager-linux-x64.run
Solution 3
In this post I explained how shortcuts actually works
Firstly gksu
should be installed in Ubuntu. Run the following command to confirm if it is installed, and it will install it if it isn't already:
sudo apt-get install gksu
Do the same as seen in the screenshots. All the shortcuts are present in applications folder. So you have to create file of shortcut in its directory. (do not forget to save)
Put the following text in /usr/share/applications/xampp-control-panel.desktop
:
[Desktop Entry]
Encoding=UTF-8
Name=XAMPP Control Panel
Comment=Start and Stop XAMPP
Exec=gksudo /opt/lampp/manager-linux-x64.run
Icon=/opt/lampp/htdocs/favicon.ico
Categories=Application
Type=Application
Terminal=false
Now go to /usr/share/applications
and check if the entry is created or not:
The extension of shortcut or icons is .desktop
.
If there is already of shortcut of XAMPP present in this folder then you can also edit its code instead of creating new file, by knowing its name as shown below:
Now suppose that you want to edit code of sol.desktop
run the following command:
sudo gedit /usr/share/applications/sol.desktop
run:
sudo apt-get update
Solution 4
Find the installation directory of the XAMPP. Usually, it will be installed in the directory
/opt/lampp
change directory to /opt/lampp
cd /opt/lampp
To start XAMPP control panel
./manager-linux-x64.run
Use sudo if it says "Permission Denied" while executing the previous command.
sudo ./manager-linux-x64.run
After executing the last command, the XAMPP control panel should open like this
Solution 5
Follow the below steps:
-
Install gnome-panel to be able to create launcher:
sudo apt-get install --no-install-recommends gnome-panel
-
Run the below command to execute the Create Launcher Application:
gnome-desktop-item-edit ~/Programs/Launchers --create-new
The "create launcher" window pops up and select “Application” as the Type.
Enter for example “XAMPP starter” as the Name.
Enter “sudo /opt/lampp/lampp start” into the Command Box.
Press ok.
Related videos on Youtube
Black
Updated on September 18, 2022Comments
-
Black over 1 year
How can I start xampp? After the installation there was no shortcut created on the desctop, now I am unable to find it. I am using the latest XAMPP for Linux 5.6.30, 7.0.15 & 7.1.1
The panel started right after the installation, but I am unable to find out how to start the panel after I closed it.
I read in some other topic to execute this command:
sudo /opt/lampp/share/xampp-control-panel/xampp-control-panel
But this fails with:
sudo /opt/lampp/share/xampp-control-panel/xampp-control-panel Traceback (most recent call last): File "xampp-control-panel.py", line 18, in <module> import gtk ImportError: No module named gtk
I also tried to search for xampp, but nothing relevant found:
UPDATE:
/opt/lampp
UPDATE:
I also tried to start xampp from the terminal like this:
root@ubuntu:/opt/lampp$ ./xampp panel
But then the xampp help page shows in the terminal and no GUI is starting:
-
Akhil Varma about 7 yearstry to install the python gtk package and then restart your xampp control panel -> launchpad.net/ubuntu/+archive/primary/+files/…
-
Black almost 7 yearswow, already 10k views on something simple like this, ubuntu really needs to improve so it is easier to use, otherwise everyone will stay at windows
-
Black over 4 yearslol, 2019 and we have 227.000 Views, is it still that complicated?!
-
-
Alamjit Singh about 7 yearsIt will not create icon directly on desktop. Search as shown in the screenshot.
-
Alamjit Singh about 7 yearsupload screenshot of directory /opt/lampp. (Go to this directory press print screen button and then save it then upload it)
-
Alamjit Singh about 7 yearsThere are some folders which are missing in this directory. Did you launch xampp-control panel one time ?
-
Alamjit Singh about 7 yearsI don't know, If it was launched successfully then why those folders are missing. I have added all required code to run xampp with icon. Try with patience after reinstalling it.
-
Black about 7 yearsI just uninstalled it and reinstalled it but have the same amount of folders and files as before.
-
Black about 7 yearsThank you, but I get
gnome-desktop-item-edit: file:///root/Programs/Launchers does not have a .desktop or .directory suffix
-
M. Hossein about 7 yearsThis path [~/Programs/Launchers] is example! Create a folder and enter its path. The .desktop file will be saved there.
-
Black about 7 yearsOk I tried this, now there is a shortcut on my desctop, but nothing happens If I click on it.
-
Alamjit Singh about 7 yearsTry this "gnome-desktop-item-edit /opt/lampp/manager-linux-x64.run --create-new" then run "sudo apt-get update" in terminal it should work.
-
Black about 7 yearsExecuting
sudo ./manager-linux-x64.run
worked. The GUI finally shows and I can start working finally... thx -
Black about 7 yearsI don't think that this is missing. If it was really missing, then how could the panel even show up right after the installation? Anyways, I get
Error importing pygtk2 and pygtk2-libglade
-
Alamjit Singh about 7 yearsdid you get success in running shortcut or not ?
-
Black about 7 yearsThe shortcut is not working by far.
-
Nicholas about 7 yearsYou don't specify that the panel showed up "right after the installation". And I'm going of the python error message, that is either saying that you're missing python-gtk completely or it's not in python search path.
-
Black about 7 yearsYes sorry I didn't mention that.
-
Nicholas about 7 yearsDo you still need help with it, or did you find your solution?
-
Black about 7 yearsNo thanks, It works now. I was able to open the pannel by executing
sudo ./manager-linux-x64.run
in the xampp folder -
derHugo over 6 yearsI don't think the question is about how to make a Shortcut or Script to open Xampp but rather facing a problem running Xampp in general.
-
Black over 6 yearsWow, are XAMPP developers even testing their own software?
-
Nav over 6 yearsWorks! And works well. Ideally Xampp should've created the necessary startup executables instead of expecting us to do it.
-
spiderplant0 over 6 yearsI got this solution to work with a slight adjustment. I swapped line...
Exec=gksudo /opt/lampp/manager-linux-x64.run
with...Exec=gksudo /opt/lampp/share/xampp-control-panel/xampp-control-panel
-
Cagy79 over 5 yearsgksu is deprecated. It is removed from Debian, Ubuntu 18.04 and other newer Linux distribution version. The solution now is to use: askubuntu.com/questions/39281/…
-
Cagy79 over 5 yearsgksu is deprecated. It is removed from Debian, Ubuntu 18.04 and other newer Linux distribution version. The solution now is to use: askubuntu.com/questions/39281/…
-
Pranav about 5 yearsDamm right @Nav. They are trying to make us a complete nerd. and waste our time searching for this piece of ....
-
Roshana Pitigala about 4 years
Package 'gksu' has no installation candidate
-
Dev Gaud over 3 yearsIt works but when you close terminal control panel closes as well
-
Muhammad Omer Aslam about 3 yearsPackage gksu is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
-
Dinesh Shekhawat over 2 yearsThis should have been the accepted answer. Short, simple and concise.
-
Admin almost 2 years
sudo manager-linux-x64.run
gives mecommand not found error
butsudo ./manager-linux-x64.run
doesn't . Why ? 🤔