Apacheを起動できません

Apacheを起動できません
[root@localhost ~]# systemctl start 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.
[root@localhost ~]#  systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Wed 2017-02-01 14:41:03 EST; 8s ago
    Docs: man:httpd(8)
          man:apachectl(8)
  Process: 3099 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 3098 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
  Main PID: 3098 (code=exited, status=1/FAILURE)

Feb 01 14:41:03 localhost.localdomain systemd[1]: Starting The Apache HTTP Se...
Feb 01 14:41:03 localhost.localdomain httpd[3098]: AH00526: Syntax error on l...
Feb 01 14:41:03 localhost.localdomain httpd[3098]: Invalid command 'Comment',...
Feb 01 14:41:03 localhost.localdomain systemd[1]: httpd.service: main process...
Feb 01 14:41:03 localhost.localdomain kill[3099]: kill: cannot find process ""
Feb 01 14:41:03 localhost.localdomain systemd[1]: httpd.service: control proc...
Feb 01 14:41:03 localhost.localdomain systemd[1]: Failed to start The Apache ...
Feb 01 14:41:03 localhost.localdomain systemd[1]: Unit httpd.service entered ...
Feb 01 14:41:03 localhost.localdomain systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

ベストアンサー1

問題はApache設定ファイルの構文エラーのようです。エラーログを確認してください(一般的な内容/var/log/httpd/error_logまたは/var/log/apache2/error_log詳細については)。エラーを修正すると、Apacheサーバーが起動する可能性があります。

おすすめ記事