xampp line 22 netstat command not found Ubuntu

Posted on

22 netstat command not found

I’m currently getting an error when running xampp on ubuntu. XAMPP is an Apache distribution software that contains MariaDB, PHP, and Perl. Later it will be easy to activate just by using the start button.

The error that occurs is /opt/lampp/share/xampp/xampplib: line 22: netstat: command not found. More as in the following:

neon@NEON:~$ sudo /opt/lampp/xampp restart
Restarting XAMPP for Linux 8.1.0-0...
XAMPP: Stopping Apache...ok.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...ok.
XAMPP: Starting Apache.../opt/lampp/share/xampp/xampplib: line 22: netstat: command not found
/opt/lampp/share/xampp/xampplib: line 22: netstat: command not found
ok.
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.

How to fix this?

Open your terminal and use this command:

sudo apt install net-tools

Done.