Xampp Error: netstat: command not found

Error

ubuntu@ip-172-31-41-444:~$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 8.2.12-0...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL.../opt/lampp/share/xampp/xampplib: line 22: netstat: command not found
ok.
XAMPP: Starting ProFTPD.../opt/lampp/share/xampp/xampplib: line 22: netstat: command not found
ok.

Solution

# Debian, Ubuntu, and derivatives
sudo apt update && sudo apt install net-tools

# CentOS, RHEL (up to version 7), and derivatives
sudo yum install net-tools

# CentOS/RHEL 8, Fedora
sudo dnf install net-tools

# Arch Linux, Manjaro
sudo pacman -Sy net-tools

# openSUSE
sudo zypper install net-tools

# Alpine Linux
sudo apk add net-tools