お世話になっております。
件名の通りやりたいのでググって調べると
/etc/httpd/conf/httpd.conf
の
Options Indexes FollowSymLinks
↓
Options -Indexes FollowSymLinks
のようにすれば良いとの記事が見つかったので
そのようにしてリスタートした場合
# service httpd restart Redirecting to /bin/systemctl restart httpd.service Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
と上手くリスタート出来ません……
"systemctl status httpd.service" と "journalctl -xe"を見てって言われてみても
[root@ip-111-22-3-444 ~]# systemctl status httpd.service ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/httpd.service.d └─php-fpm.conf Active: failed (Result: exit-code) since Wed 2021-03-10 05:12:28 UTC; 2min 19s ago Docs: man:httpd.service(8) Process: 7197 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 7197 (code=exited, status=1/FAILURE) Status: "Reading configuration..." Mar 10 05:12:28 ip-111-22-3-444.ap-northeast-1.compute.internal systemd[1]: Starting The Apache HTTP Server... Mar 10 05:12:28 ip-111-22-3-444.ap-northeast-1.compute.internal httpd[7197]: AH00526: Syntax error on line 144 of /etc/httpd/conf/h...onf: Mar 10 05:12:28 ip-111-22-3-444.ap-northeast-1.compute.internal httpd[7197]: Either all Options must start with + or -, or no Option may. Mar 10 05:12:28 ip-111-22-3-444.ap-northeast-1.compute.internal systemd[1]: httpd.service: main process exited, code=exited, status...LURE Mar 10 05:12:28 ip-111-22-3-444.ap-northeast-1.compute.internal systemd[1]: Failed to start The Apache HTTP Server. Mar 10 05:12:28 ip-111-22-3-444.ap-northeast-1.compute.internal systemd[1]: Unit httpd.service entered failed state. Mar 10 05:12:28 ip-111-22-3-444.ap-northeast-1.compute.internal systemd[1]: httpd.service failed. Hint: Some lines were ellipsized, use -l to show in full. [root@ip-111-22-3-444 ~]# journalctl -xe -- -- The start-up result is done. Mar 10 05:30:01 ip-111-22-3-444.ap-northeast-1.compute.internal systemd[1]: Starting Session 3820 of user root. -- Subject: Unit session-3820.scope has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit session-3820.scope has begun starting up. Mar 10 05:30:01 ip-111-22-3-444.ap-northeast-1.compute.internal CROND[7282]: (root) CMD (/usr/lib64/sa/sa1 1 1) Mar 10 05:30:01 ip-111-22-3-444.ap-northeast-1.compute.internal systemd[1]: Removed slice User Slice of root. -- Subject: Unit user-0.slice has finished shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit user-0.slice has finished shutting down. Mar 10 05:30:01 ip-111-22-3-444.ap-northeast-1.compute.internal systemd[1]: Stopping User Slice of root. -- Subject: Unit user-0.slice has begun shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit user-0.slice has begun shutting down. Mar 10 05:31:01 ip-111-22-3-444.ap-northeast-1.compute.internal dhclient[2850]: XMT: Solicit on eth0, interval 113200ms. Mar 10 05:32:54 ip-111-22-3-444.ap-northeast-1.compute.internal dhclient[2850]: XMT: Solicit on eth0, interval 122320ms.
と良く分からないため
調査方法をお伺いしてよろしいでしょうか?
お忙しい所失礼いたしますが何か情報をお持ちな方はコメント頂ければ幸いです。
回答2件
あなたの回答
tips
プレビュー