1.Install XAMPP(Ubuntu 18.04 64-bit)
1.1.Choose your flavor for your linux OS, the 32-bit or 64-bit version :
cd /tmp/
wget https://downloadsapachefriends.global.ssl.fastly.net/5.6.40/xampp-linux-x64-5.6.40-0-installer.run
1.2.Change the permissions to the installer :
chmod 755 xampp-linux-x64-5.6.40-0-installer.run
1.3.Run the installer :
sudo ./xampp-linux-x64-5.6.40-0-installer.run
That's all. XAMPP is now installed below the /opt/lampp directory.
1.4.Start or Stop XAMPP :
cd /opt/lampp/
sudo ./lampp start or sudo ./lampp stop
You should now see something on your screen.
2.Auto-Start XAMPP
2.1.Copy the /opt/lampp/lampp script to the /etc/init.d directory:sudo cp /opt/lampp/lampp /etc/init.d
2.2.Add or modify the following lines at the beginning of the /etc/init.d/lampp script:vim /etc/init.d/lampp
### BEGIN INIT INFO
# Provides: xampp
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start XAMPP at boot time
#Description: Enable services provided by XAMPP.
### END INIT INFO
2.3.Add the script to the default runlevels and enable it:
sudo update-rc.d -f lampp defaults
sudo update-rc.d -f lampp enable
2.4.Reboot your system and XAMPP should start automatically.
3.Configure FTP Access
3.1.Open a new linux terminal and ensure you are logged in as root
3.2.Create a new group named ftpgroup. This group will contain those user accounts allowed to upload files via FTP.
groupadd ftpgroup
3.3.Add your account(in this example, ftpuser) to the new group. Add other user if needed.
useradd ftpuser
passwd ftpuser
usermod -a -G ftpgroup ftpuser
3.4.Change the ownership and permissions of the /opt/lampp/htdocs/ subdirectory of the XAMPP installation directory so that it is writable by the new ftp group
cd /opt/lampp/
chown root.ftpgroup htdocs
chmod 777 htdocs
3.5.Restart XAMPP
sudo ./lampp restart