
Linux は初めてですが、Centos 7.2 を PC で起動して実行しています。「The Perfect Server」の指示に従って Apache のインストールまで進みましたが、コマンドを実行するとマシンがエラーを返すため、ispconfig の構成で行き詰まっています。systemctl restart httpd.service.
制御プロセスがエラー コード AH00526 で終了したため、httpd サービスのジョブが失敗したと表示されます。
Oct 25 05:37:49 server01.tcforwarding.com httpd[14691]: [Tue Oct 25 05:37:49.091640 2016] [alias:warn] [pid 14691] AH00671: The ScriptAlias directive in /etc/httpd/conf.d/mailman.conf at line 6 will probably never match because it overlaps an earlier ScriptAlias.
Oct 25 05:37:49 server01.tcforwarding.com httpd[14691]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/httpd.conf:356
Oct 25 05:37:49 server01.tcforwarding.com httpd[14691]: AH00526: Syntax error on line 6 of /etc/httpd/conf/sites-enabled/000-ispconfig.vhost:
Oct 25 05:37:49 server01.tcforwarding.com httpd[14691]: Port must be specified
Oct 25 05:37:49 server01.tcforwarding.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Oct 25 05:37:49 server01.tcforwarding.com kill[14699]: kill: cannot find process ""
Oct 25 05:37:49 server01.tcforwarding.com systemd[1]: httpd.service: control process exited, code=exited status=1
Oct 25 05:37:49 server01.tcforwarding.com systemd[1]: Failed to start The Apache HTTP Server.
Oct 25 05:37:49 server01.tcforwarding.com systemd[1]: Unit httpd.service entered failed state.
Oct 25 05:37:49 server01.tcforwarding.com systemd[1]: httpd.service failed.
以下は vhost ファイル自体の一部です。
_
__Listen root
NameVirtualHost *:root
_
VirtualHost default:root *:80
_ServerAdmin [email protected]
_
__Directory /var/www/ispconfig/
____FilesMatch ".ph(p3?|tml)$"
他に何か必要なことがあればお知らせください。
答え1
root
有効な TCP ポート番号ではありません。次のようなものが必要になる場合があります。
Listen 80
NameVirtualHost *:80