User Tools

Site Tools


notes:xampp-netstat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
notes:xampp-netstat [2022/06/07 08:10] – created adminnotes:xampp-netstat [2022/08/05 20:03] (current) – fix for google - part 2 admin
Line 1: Line 1:
-====== Fix XAMPP 'netstat: command not found' error on Linux ======+====== Fix XAMPP netstat error on Linux ======
  
-To fix the XAMPP 'netstat: command not found' error on Linux while starting the service, simply edit file ''/opt/lampp/share/xampp/xampplib'' and change line 22 from:+''netstat'' is old and is not shipped anymore 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     if netstat -an | egrep "[.:]$1 .*LISTEN" > /dev/null
 to to
     if ss -an | egrep "LISTEN.*[.:]$1" > /dev/null     if ss -an | egrep "LISTEN.*[.:]$1" > /dev/null
  
notes/xampp-netstat.txt · Last modified: 2022/08/05 20:03 by admin