53

I installed xampp to run a server as part of a guide, but it wasn't working. After trying to run it from command line, I got the following output:

$ sudo ./xampp start panel
Starting XAMPP for Linux 8.1.6-0...
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
fail.
XAMPP:  Starting diagnose... 
XAMPP:  Sorry, I've no idea what's going wrong. 
XAMPP:  Please contact our forum http://www.apachefriends.org/f/ 
Last 10 lines of "/opt/lampp/logs/error_log":
tail: cannot open '/opt/lampp/logs/error.log' for reading: No such file or directory
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.

The line of interest is netstat: command not found

I tried to do sudo apt install netstat, but it's not found. Alternatively, is netstat part of another Ubuntu package I should be installing?

Thanks!

Dr-Bracket
  • 2,315
  • 1
  • 16
  • 18

2 Answers2

75

Found out I'm supposed to use sudo apt install net-tools for this

Dr-Bracket
  • 2,315
  • 1
  • 16
  • 18
18

By my opinion. Netstat was replaced "ss", which is default installed.

Radek
  • 317
  • 2
    Maybe nice to show an example usage. Not everybody knows ss if they come from netstat – V. Bozz Apr 24 '24 at 19:56
  • 1
    @ValerioBozz ss --help displays its help menu.. looks like the few netstat flags I remember are the same for ss. – yano Sep 12 '24 at 22:46
  • 1
    @ValerioBozz ss -t -p -a | grep ssh was used for me to determine if ssh was configured or running on a fresh install of Ubuntu Server because netstat was replaced. Linode-docs – zerodoc Feb 07 '25 at 18:44
  • Still maybe nice to integrate something into this answer – V. Bozz Feb 09 '25 at 14:51