lampp script triggers error when reloadapache

Alles, was den Apache betrifft, kann hier besprochen werden.

lampp script triggers error when reloadapache

Postby coldje » 11. January 2021 20:44

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?
User avatar
coldje
 
Posts: 17
Joined: 01. November 2020 16:14
Location: Charlotte, NC
XAMPP version: 7.4.11-0
Operating System: Ubuntu server 20.04 LTS

Re: lampp script triggers error when reloadapache

Postby coldje » 11. January 2021 23:14

I don't know why this worked, but when I : /opt/lampp$ sudo ./xampp start, apache2 started just fine.
I decided to try this after reading some threads online about someone trying to use kill and always term with a 0.
Anyway, I think running the xampp script resets the httpd.pid log like it should vs. the lampp script.

Nevermind.
User avatar
coldje
 
Posts: 17
Joined: 01. November 2020 16:14
Location: Charlotte, NC
XAMPP version: 7.4.11-0
Operating System: Ubuntu server 20.04 LTS


Return to Apache

Who is online

Users browsing this forum: No registered users and 17 guests