User Tools

Site Tools


notes:fix-xampp-netstat-error

This is an old revision of the document!


Fix XAMPP 'netstat: command not found' error on Linux

XAMPP Apache distribution has a small issue with the starting script on recent Linux installations. The script uses netstat, which is old and is no longer shipped with modern distributions: it has been superseded by ss.

In order to fix the XAMPP 'netstat: command not found' error shown on Linux while starting the XAMPP service, simply edit file /opt/lampp/share/xampp/xampplib and change line 22 from:

  if netstat -an | egrep "[.:]$1 .*LISTEN" > /dev/null

to

  if ss -an | egrep "LISTEN.*[.:]$1" > /dev/null
notes/fix-xampp-netstat-error.1659607623.txt.gz ยท Last modified: 2022/08/04 10:07 by admin