●【linux】Job for httpd.service failed because the control process exited with error code. See “systemctl status httpd.service” and “journalctl -xeu httpd.service” for details.

linuxの勉強中

新しくサーバー建てて、httpdを起動してブラウザ表示テストしようとしたら

Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xeu httpd.service" for details.

このエラー!!

原因を探るべく

apachectl configtest

してみると

AH00526: Syntax error on line 124 of /etc/httpd/conf/httpd.conf:

単にhttpd.confのRootの記述にミスがありましたw

このエラーが出た時は

apachectl configtest

すれば一発で原因わかります!

コメント