When I try to start my xampp in the server I found these errors:
Error:
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
fail.
Contents of "/opt/lampp/var/proftpd/start.err":
2023-11-10 05:56:35,053 ip-172-31-5-87 proftpd[104554]: fatal: unknown configuration directive 'function' on line 44 of '/opt/lampp/etc/proftpd.conf'
ubuntu@ip-172-31-5-87:/opt/lampp$ chmod 755 xampp-linux-x64-8.2.4-0-installer.run
chmod: cannot access 'xampp-linux-x64-8.2.4-0-installer.run': No such file or directory
ubuntu@ip-172-31-5-87:/opt/lampp$ sudo /opt/lampp/lampp restart
Restarting XAMPP for Linux 8.2.4-0...
XAMPP: Stopping Apache...not running.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...not running.
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
fail.
Contents of "/opt/lampp/var/proftpd/start.err":
2023-11-10 05:58:43,261 ip-172-31-5-87 proftpd[105005]: fatal: unknown configuration directive 'function' on line 44 of '/opt/lampp/etc/proftpd.conf'
How can I solve this problem with xampplib and how can I get the xampp to work?
Solution
It seems that your xampp instance is complaining about a lack of netstat command.
netstat is a part of the net-tools package, so run this command to install netstat:
sudo apt install net-tools
Then try to start your xampp again, it should work now.