Apache : Error retrieving pid file logs/httpd.pid
March 6, 2023 2023-06-30 2:53Apache : Error retrieving pid file logs/httpd.pid
If you may received an error below when you start the XAMPP on your Linux machine,
[(20014)Internal error: Error retrieving pid file logs/httpd.pid
Remove it before continuing if it is corrupted.]
You can easily fix this error with simple steps below, First your have stop the XAMPP service using the command below,
local@host$ sudo /opt/lampp/lampp stop
Go to the lampp logs directory and move or remove the httpd.pid file,
[localhost~]$ sudo cd /opt/lampp/logs
[localhost~]$ sudo mv httpd.pid httpd_pid_bak
#(or)
[localhost~]$ sudo rm httpd.pid
Then, you can start the service,
[root@local]$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 8.0.2...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
That’s it, go your browser and check the URL http://localhost/ or http://127.0.0.1/