Can't open PID file /run/apache2/httpd.pid

mediapromx

Registered
Oct 1, 2020
1
0
1
merida
cPanel Access Level
Root Administrator
Hola necesito ayuda en español, mi problema es: Can't open PID file /run/apache2/httpd.pid (yet?) after start: No such file or directory

Mi configuración:

[[email protected] ~]# cat /usr/lib/systemd/system/httpd.service
[Unit]
Description=Apache web server managed by cPanel EasyApache
ConditionPathExists=!/etc/httpddisable
ConditionPathExists=!/etc/apachedisable
ConditionPathExists=!/etc/httpdisable
After=network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target

[Service]
Type=forking
ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose
ExecStop=/usr/local/cpanel/scripts/restartsrv_httpd stop --no-verbose
ExecReload=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose
PIDFile=/run/apache2/httpd.pid
TimeoutSec=5m

[Install]
WantedBy=multi-user.target

Error:

[[email protected] ~]# systemctl status httpd.service
● httpd.service - Apache web server managed by cPanel EasyApache
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2020-10-01 12:19:41 CDT; 6min ago
Process: 18221 ExecStop=/usr/local/cpanel/scripts/restartsrv_httpd stop --no-verbose (code=exited, status=0/SUCCESS)
Process: 18240 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=0/SUCCESS)
Main PID: 18259 (httpd)
CGroup: /system.slice/httpd.service
├─18259 /usr/sbin/httpd -k start
├─18260 /usr/local/cpanel/bin/splitlogs --dir=/etc/apache2/logs/domlogs --main=server.domain.com --suffix=-bytes_log --sslport=8443
├─18261 /usr/local/cpanel/bin/splitlogs --dir=/etc/apache2/logs/domlogs --main=server.domain.com --mainout=/etc/apache2/logs/access_log --sslport=8443
├─18262 /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/bin/leechprotect
├─18263 /usr/sbin/httpd -k start
├─18264 /usr/sbin/httpd -k start
├─18265 /usr/sbin/httpd -k start
├─18266 /usr/sbin/httpd -k start
├─18267 /usr/sbin/httpd -k start
├─18275 /usr/sbin/httpd -k start
├─18278 /usr/sbin/httpd -k start
├─18279 /usr/sbin/httpd -k start
├─18293 /usr/sbin/httpd -k start
├─18294 /usr/sbin/httpd -k start
├─18295 /usr/sbin/httpd -k start
├─18296 /usr/sbin/httpd -k start
├─18308 /usr/sbin/httpd -k start
├─18309 /usr/sbin/httpd -k start
├─18310 /usr/sbin/httpd -k start
├─18311 /usr/sbin/httpd -k start
├─18312 /usr/sbin/httpd -k start
├─18313 /usr/sbin/httpd -k start
├─18314 /usr/sbin/httpd -k start
├─18315 /usr/sbin/httpd -k start
├─18331 /usr/sbin/httpd -k start
├─18332 /usr/sbin/httpd -k start
├─18333 /usr/sbin/httpd -k start
├─18334 /usr/sbin/httpd -k start
├─18335 /usr/sbin/httpd -k start
├─18336 /usr/sbin/httpd -k start
├─18337 /usr/sbin/httpd -k start
├─18338 /usr/sbin/httpd -k start
├─18339 /usr/sbin/httpd -k start
├─18340 /usr/sbin/httpd -k start
├─18341 /usr/sbin/httpd -k start
├─18342 /usr/sbin/httpd -k start
├─18343 /usr/sbin/httpd -k start
├─18344 /usr/sbin/httpd -k start
├─18345 /usr/sbin/httpd -k start
├─18346 /usr/sbin/httpd -k start
├─18358 /usr/sbin/httpd -k start
├─18359 /usr/sbin/httpd -k start
├─18360 /usr/sbin/httpd -k start
├─18361 /usr/sbin/httpd -k start
├─18362 /usr/sbin/httpd -k start
├─18363 /usr/sbin/httpd -k start
├─18364 /usr/sbin/httpd -k start
├─18365 /usr/sbin/httpd -k start
├─18366 /usr/sbin/httpd -k start
├─18367 /usr/sbin/httpd -k start
├─18368 /usr/sbin/httpd -k start
├─18369 /usr/sbin/httpd -k start
├─18370 /usr/sbin/httpd -k start
├─18371 /usr/sbin/httpd -k start
├─18372 /usr/sbin/httpd -k start
├─18373 /usr/sbin/httpd -k start
├─18374 /usr/sbin/httpd -k start
├─18375 /usr/sbin/httpd -k start
├─18376 /usr/sbin/httpd -k start
├─18377 /usr/sbin/httpd -k start
├─18378 /usr/sbin/httpd -k start
├─18379 /usr/sbin/httpd -k start
├─18380 /usr/sbin/httpd -k start
├─18381 /usr/sbin/httpd -k start
├─18382 /usr/sbin/httpd -k start
├─18383 /usr/sbin/httpd -k start
├─18384 /usr/sbin/httpd -k start
├─18385 /usr/sbin/httpd -k start
├─18386 /usr/sbin/httpd -k start
├─18387 /usr/sbin/httpd -k start
├─18388 /usr/sbin/httpd -k start
├─18389 /usr/sbin/httpd -k start
├─18406 /usr/sbin/httpd -k start
├─18407 /usr/sbin/httpd -k start
├─18408 /usr/sbin/httpd -k start
├─18409 /usr/sbin/httpd -k start
├─18410 /usr/sbin/httpd -k start
├─18411 /usr/sbin/httpd -k start
├─18412 /usr/sbin/httpd -k start
├─18413 /usr/sbin/httpd -k start
├─18414 /usr/sbin/httpd -k start
├─18415 /usr/sbin/httpd -k start
├─18416 /usr/sbin/httpd -k start
├─18417 /usr/sbin/httpd -k start
├─18418 /usr/sbin/httpd -k start
├─18419 /usr/sbin/httpd -k start
├─18420 /usr/sbin/httpd -k start
├─18421 /usr/sbin/httpd -k start
├─18422 /usr/sbin/httpd -k start
├─18423 /usr/sbin/httpd -k start
├─18424 /usr/sbin/httpd -k start
├─18425 /usr/sbin/httpd -k start
├─18426 /usr/sbin/httpd -k start
├─18427 /usr/sbin/httpd -k start
├─18428 /usr/sbin/httpd -k start
├─18429 /usr/sbin/httpd -k start
├─18430 /usr/sbin/httpd -k start
├─18431 /usr/sbin/httpd -k start
├─18432 /usr/sbin/httpd -k start
├─18433 /usr/sbin/httpd -k start
├─18434 /usr/sbin/httpd -k start
├─18435 /usr/sbin/httpd -k start
├─18436 /usr/sbin/httpd -k start
├─18437 /usr/sbin/httpd -k start
├─18441 /usr/sbin/httpd -k start
├─18442 /usr/sbin/httpd -k start
├─18443 /usr/sbin/httpd -k start
├─18444 /usr/sbin/httpd -k start
├─18445 /usr/sbin/httpd -k start
├─18446 /usr/sbin/httpd -k start
├─18447 /usr/sbin/httpd -k start
├─18448 /usr/sbin/httpd -k start
├─18449 /usr/sbin/httpd -k start
├─18450 /usr/sbin/httpd -k start
├─18451 /usr/sbin/httpd -k start
├─18452 /usr/sbin/httpd -k start
├─18453 /usr/sbin/httpd -k start
├─18454 /usr/sbin/httpd -k start
├─18455 /usr/sbin/httpd -k start
├─18456 /usr/sbin/httpd -k start
├─18457 /usr/sbin/httpd -k start
├─18458 /usr/sbin/httpd -k start
├─18459 /usr/sbin/httpd -k start
├─18460 /usr/sbin/httpd -k start
├─18461 /usr/sbin/httpd -k start
├─18462 /usr/sbin/httpd -k start
├─18463 /usr/sbin/httpd -k start
├─18464 /usr/sbin/httpd -k start
├─18465 /usr/sbin/httpd -k start
├─18466 /usr/sbin/httpd -k start
├─18467 /usr/sbin/httpd -k start
├─18468 /usr/sbin/httpd -k start
├─18469 /usr/sbin/httpd -k start
├─18470 /usr/sbin/httpd -k start
├─18471 /usr/sbin/httpd -k start
├─18472 /usr/sbin/httpd -k start
├─18477 /usr/sbin/httpd -k start
├─18478 /usr/sbin/httpd -k start
├─18479 /usr/sbin/httpd -k start
├─18480 /usr/sbin/httpd -k start
├─18481 /usr/sbin/httpd -k start
├─18482 /usr/sbin/httpd -k start
├─18483 /usr/sbin/httpd -k start
├─18484 /usr/sbin/httpd -k start
├─18485 /usr/sbin/httpd -k start
├─18486 /usr/sbin/httpd -k start
├─18487 /usr/sbin/httpd -k start
├─18488 /usr/sbin/httpd -k start
├─18489 /usr/sbin/httpd -k start
├─18490 /usr/sbin/httpd -k start
├─18491 /usr/sbin/httpd -k start
├─18492 /usr/sbin/httpd -k start
├─18493 /usr/sbin/httpd -k start
└─18494 /usr/sbin/httpd -k start

Oct 01 12:19:41 server.domain.com systemd[1]: Starting Apache web server managed by cPanel EasyApache...
Oct 01 12:19:41 server.domain.com systemd[1]: Can't open PID file /run/apache2/httpd.pid (yet?) after start: No such file or directory
Oct 01 12:19:41 server.domain.com systemd[1]: Started Apache web server managed by cPanel EasyApache.


alquien que me pueda ayudar?
 
Last edited by a moderator:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
Hola,

No estoy seguro de entender completamente, cuál es el problema. Esto parece una salida bastante estándar de Apache en un servidor web activo

Ver la salida de mi propio servidor (de muy bajo tráfico):

Code:
[[email protected] public_html]# systemctl status httpd.service
● httpd.service - Apache web server managed by cPanel EasyApache
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2020-09-30 16:09:42 CDT; 1 day 20h ago
 Main PID: 9271 (httpd)
   CGroup: /system.slice/httpd.service
           ├─ 9271 /usr/sbin/httpd -k start
           ├─37573 /usr/sbin/httpd -k start
           ├─37578 /usr/sbin/httpd -k start
           ├─37579 /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/bin/leechprotect
           ├─37580 /usr/sbin/httpd -k start
           ├─37581 /usr/sbin/httpd -k start
           ├─37582 /usr/sbin/httpd -k start
           ├─37583 /usr/sbin/httpd -k start
           └─37585 /usr/sbin/httpd -k start

Sep 30 16:09:41 server.domain.us systemd[1]: Starting Apache web server managed by cPanel EasyApache...
Sep 30 16:09:42 server.domain.us systemd[1]: Can't open PID file /run/apache2/httpd.pid (yet?) after start: No such file or directory
Sep 30 16:09:42 server.domain.us systemd[1]: Started Apache web server managed by cPanel EasyApache.
=======================================================================

Hello,

I am not sure I understand fully, what the issue is. This looks like fairly standard output from Apache on an active webserver

See the output from my own (very low traffic) server:

Code:
[[email protected] public_html]# systemctl status httpd.service
● httpd.service - Apache web server managed by cPanel EasyApache
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2020-09-30 16:09:42 CDT; 1 day 20h ago
 Main PID: 9271 (httpd)
   CGroup: /system.slice/httpd.service
           ├─ 9271 /usr/sbin/httpd -k start
           ├─37573 /usr/sbin/httpd -k start
           ├─37578 /usr/sbin/httpd -k start
           ├─37579 /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/bin/leechprotect
           ├─37580 /usr/sbin/httpd -k start
           ├─37581 /usr/sbin/httpd -k start
           ├─37582 /usr/sbin/httpd -k start
           ├─37583 /usr/sbin/httpd -k start
           └─37585 /usr/sbin/httpd -k start

Sep 30 16:09:41 server.domain.us systemd[1]: Starting Apache web server managed by cPanel EasyApache...
Sep 30 16:09:42 server.domain.us systemd[1]: Can't open PID file /run/apache2/httpd.pid (yet?) after start: No such file or directory
Sep 30 16:09:42 server.domain.us systemd[1]: Started Apache web server managed by cPanel EasyApache.