Bonjour @remi
J’ai trouvé ce script sur cette page
Par contre j’ai installé httpd-tools-2.4.58-1.fc38.x86_64
pour avoir apache bench
Et depuis apache a des erreurs notamment il ne demare plus et me donne ce retour pour la commande sudo systemctl start httpd
le retour est :
Job for httpd.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status httpd.service" and "journalctl -xeu httpd.service" for details.
La commande: sudo apachectl -t
Me retourne : Syntax OK
dans les logs de apache avec la commande : tail -n 20 /var/log/httpd/error_log
[Thu Jan 04 05:13:08.238899 2024] [core:alert] [pid 10603:tid 10702] [client 170.106.104.42:44380] /srv/web/obierti-cloud/.htaccess: DirectoryIndex not allowed here
[Thu Jan 04 05:20:54.195757 2024] [core:alert] [pid 10281:tid 10317] [client 83.97.73.245:34444] /srv/web/obierti-cloud/.htaccess: DirectoryIndex not allowed here
[Thu Jan 04 05:35:09.758876 2024] [core:alert] [pid 10651:tid 10762] [client 34.155.98.32:43674] /srv/web/obierti-cloud/.htaccess: DirectoryIndex not allowed here
[Thu Jan 04 05:35:09.993138 2024] [core:alert] [pid 10530:tid 10652] [client 66.249.66.32:58527] /srv/web/obierti-cloud/.htaccess: DirectoryIndex not allowed here
[Thu Jan 04 05:45:13.448881 2024] [core:alert] [pid 10530:tid 10642] [client 20.150.201.61:49354] /srv/web/obierti-cloud/.htaccess: DirectoryIndex not allowed here
[Thu Jan 04 05:45:14.880630 2024] [core:alert] [pid 10281:tid 10313] [client 20.150.201.61:64490] /srv/web/obierti-cloud/.htaccess: DirectoryIndex not allowed here
[Thu Jan 04 05:45:16.439225 2024] [core:alert] [pid 10281:tid 10344] [client 20.150.201.61:62948] /srv/web/obierti-cloud/.htaccess: DirectoryIndex not allowed here
[Thu Jan 04 05:53:28.914658 2024] [mpm_event:notice] [pid 9794:tid 9794] AH00492: caught SIGWINCH, shutting down gracefully
[Thu Jan 04 05:53:32.008992 2024] [suexec:notice] [pid 13132:tid 13132] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jan 04 05:53:32.065718 2024] [security2:notice] [pid 13132:tid 13132] ModSecurity for Apache/2.9.7 (http://www.modsecurity.org/) configured.
[Thu Jan 04 05:53:32.065733 2024] [security2:notice] [pid 13132:tid 13132] ModSecurity: APR compiled version="1.7.2"; loaded version="1.7.2"
[Thu Jan 04 05:53:32.065736 2024] [security2:notice] [pid 13132:tid 13132] ModSecurity: PCRE2 compiled version="10.42 "; loaded version="10.42 2022-12-11"
[Thu Jan 04 05:53:32.065739 2024] [security2:notice] [pid 13132:tid 13132] ModSecurity: LUA compiled version="Lua 5.4"
[Thu Jan 04 05:53:32.065741 2024] [security2:notice] [pid 13132:tid 13132] ModSecurity: YAJL compiled version="2.1.0"
[Thu Jan 04 05:53:32.065744 2024] [security2:notice] [pid 13132:tid 13132] ModSecurity: LIBXML compiled version="2.10.3"
[Thu Jan 04 05:53:32.065746 2024] [security2:notice] [pid 13132:tid 13132] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Thu Jan 04 05:53:32.109195 2024] [lbmethod_heartbeat:notice] [pid 13133:tid 13133] AH02282: No slotmem from mod_heartmonitor
[Thu Jan 04 05:53:32.110493 2024] [systemd:notice] [pid 13133:tid 13133] SELinux policy enabled; httpd running as context unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[Thu Jan 04 05:53:32.113192 2024] [mpm_event:notice] [pid 13133:tid 13133] AH00489: Apache/2.4.58 (Fedora Linux) OpenSSL/3.0.9 SVN/1.14.2 configured -- resuming normal operations
Et la commande journalctl -xeu httpd.service
me retourne:
L'unité (unit) httpd.service a commencé à démarrer.
janv. 04 06:04:28 SRVProd httpd[14651]: httpd (pid 13133) already running
janv. 04 06:04:28 SRVProd systemd[1]: httpd.service: Failed with result 'protocol'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit httpd.service has entered the 'failed' state with result 'protocol'.
janv. 04 06:04:28 SRVProd systemd[1]: Failed to start httpd.service - The Apache HTTP Server.
░░ Subject: L'unité (unit) httpd.service a échoué
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ L'unité (unit) httpd.service a échoué, avec le résultat failed.
Que me conseillez vous de faire pour redémarrer httpd s’il vous plaît ?