How to Install XAMPP (LAMPP) on Ubuntu - with desktop icon and auto start

Published: 14 August 2021
on channel: geek_eng
6,001
76

In this video I will show you how to install XAMPP (LAMPP) on Ubuntu, Also I will show you how to make XAMPP (LAMPP) start automatically with system startup. Also, How to add a desktop icon for XAMPP (LAMPP) control panel and how to start it without password

All commands are included in the description
======================================

Install xampp (Lamp) ##
sudo chmod 755 xampp-linux-*-installer.run
sudo ./xampp-linux-x64-8.0.7-0-installer.run


Make xampp start automatically when system start ##
sudo gedit /etc/systemd/system/xampp.service

[Unit]
Description=XAMPP

[Service]
ExecStart=/opt/lampp/xampp start
ExecStop=/opt/lampp/xampp stop
Type=forking

[Install]
WantedBy=multi-user.target

sudo systemctl enable xampp.service
sudo systemctl status xampp.service

Make a Desktop Icon for xampp control panel ##

sudo gedit /usr/share/applications/xampp.desktop

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_US]=/opt/lampp/htdocs/favicon.ico
Exec=sudo /opt/lampp/manager-linux-x64.run
Comment[en_US]=start xampp manager
Name[en_US]=xampp
Name=xampp
Comment= start xampp application


It need to be run using sudo !! ###

Get the user name ###
echo $USER

Make the command start without passowrd ###
sudo visudo
mzn ALL = NOPASSWD: /opt/lampp/manager-linux-x64.run

[CTRL + o] then Enter then [CTRL + x]


Watch video How to Install XAMPP (LAMPP) on Ubuntu - with desktop icon and auto start online without registration, duration hours minute second in high quality. This video was added by user geek_eng 14 August 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,001 once and liked it 76 people.