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:
You can use one of the commands below.
If you use a 32-bit system:
If you use a 64-bit system:
First of all you need to install gksu with the following command:
Then, run:
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)
Note: For 32 bit xampp type "manager-linux.run" at place of "manager-linux-x64.run"
Run following command in terminal:
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.
To install XAMPP
Check if the following command runs or not:
also check in this way if it works or not:
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: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
: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:run:
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.
Find the installation directory of the XAMPP. Usually, it will be installed in the directory
change directory to /opt/lampp
To start XAMPP control panel
Use sudo if it says "Permission Denied" while executing the previous command.
After executing the last command, the XAMPP control panel should open like this
Your missing a module that
python
requires,gtk
. GTK is used to draw the GUI.This command might do the trick:
When it's done try to launch it again with:
As @Alamjit Singh already gave a really good and well explained answer, here it is a short summary on how to add an entry to the Desktop (app) + how to download and install XAMPP!
Run the following commands to install and run it:
(follow the installation steps to finish it; you may close it after that)
Create a desktop icon for it:
Paste this inside of the file, save it, and close it:
Finally run
sudo apt-get update
and after that you should see a desktop icon like so:To create a launcher on the Desktop:
1) You need gksu so if you don't have it yet, run in terminal:
2) Run gedit (or any other text editor) and then enter the info below:
3) Once the shortcut is on the Desktop, right-click on it, go to Properties, Permissions tab, and check "Allow executing file as program".
The above creates a shortcut for XAMPP Control Panel.
In case you want to run from your terminal type:
sudo /opt/lampp/manager-linux-x64.run
You can make a shell script also.
Open
vim
editorThen go to insert mode by pressing i and enter the following code
If you are running a 32-bit version then copy the following code:
Save the code by pressing ESC and writing:
This will save the code and exit the
vim
editor.Change permissions of the shell script by issuing the following command:
Now you're done.
Simply run the shell script by using the following command: