Apacheを起動できません。明らかなエラーはありません。

Apacheを起動できません。明らかなエラーはありません。

Centos 7を新しくインストールしていますが、Apache用のVirtualHostを設定しても起動しません。明らかなエラーはありませんが、journalctl -xeとにかく出力は次のようになります。

-- Unit httpd.service has begun starting up.
Sep 30 23:28:41 vps97148.vps.ovh.ca systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Sep 30 23:28:41 vps97148.vps.ovh.ca kill[1424]: kill: cannot find process ""
Sep 30 23:28:41 vps97148.vps.ovh.ca systemd[1]: httpd.service: control process exited, code=exited status=1
Sep 30 23:28:41 vps97148.vps.ovh.ca systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Sep 30 23:28:41 vps97148.vps.ovh.ca systemd[1]: Unit httpd.service entered failed state.
Sep 30 23:28:41 vps97148.vps.ovh.ca systemd[1]: httpd.service failed.
Sep 30 23:28:41 vps97148.vps.ovh.ca polkitd[1082]: Unregistered Authentication Agent for unix-process:1408:672266 (system bus name :1.29, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)

httpd -tそしてapachectl configtest私の文法は大丈夫だと言いました。

apachectl -S出力がありません。

これは私のdomain.com.confです。

<VirtualHost *:80>
    ServerName domainname.com
    DocumentRoot /var/www/domainname.com/public_html
    ErrorLog /var/www/domainname.com/error.log
    CustomLog /var/www/domainname.com/requests.log combined
</VirtualHost>

助けが必要ですか?それとも誰かが私が間違っていることを教えてもらえますか?

詳しくはこちらをご覧ください。

トップレベルの設定の一番下には、Include sites-enabled/*.conf私のdomainname.com.confがある場所という行があります。

ログ用のディレクトリが存在し、ログにアクセスできます。

DocumentRootディレクトリを指します。サーバはServerNameエントリを確認し、サーバの IP を再度指すことができます。

ベストアンサー1

おすすめ記事