OPERATING SYSTEMSOS Linux

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



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]

source
ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *