When I try to restart Apache2 in XAMPP with sudo /opt/lampp/lampp reloadapache, I get this message:
XAMPP: Reload Apache.../opt/lampp/lampp: line 356: kill: (4503) - No such process
fail.
kill returned 1.
I've looked and I don't see a PID 4503.
On line 356 of the /opt/lampp/lampp file, it has: kill -USR1 $(cat "XAMPP_ROOT/logs/httpd.pid")
This runs under the function reloadApache () {...
In the file httpd.pid the only item is: 4503. I deleted that and ran reloadapache again and now get this error:
XAMPP: Reload Apache...kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
fail.
kill returned 2.
I don't know what I did to cause this problem?