I've resolved in this way:
sudo chmod -R 777 /opt/lampp
sudo chown -hR nobody /opt/lampp
sudo chmod -R 755 /opt/lampp
then I noticed that I have another mysqld instance running and stoped it with:
sudo service mysql stop
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:
Best Answer
Follow this link.
https://junise.wordpress.com/2017/07/23/xampp-in-ubuntu-desktop-shortcut-launcher-entry-home-folder-shortcut-inside-htdocs/
Change this sentence:
And add:
at the end of .desktop file.