●Apacheが起動できなくなった
このサイトの5-ⅲができなくてこうなりました。
[ec2-user@ip-172-31-47-169 ~]$ service httpd restart Stopping httpd: [FAILED] Starting httpd: AH00526: Syntax error on line 3 of /etc/httpd/conf/httpd.conf: Either all Options must start with + or -, or no Option may. [FAILED]
また、別のインスタンスを立ち上げLAMP環境を構築しようと思いこのサイトの「Amazon Linux AMI を使用して LAMP ウェブサーバーをインストールして起動するには」の4でエラーが起きました。
[root@ip-10-0-1-29 ec2-user]# sudo service httpd start Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs [FAILED]
●エラーログを見て試したこと
このサイトの
「sudo tail /var/log/httpd24/error_log」を行った。
結果は、
tail: cannot open ‘/var/log/httpd24/error_log’ for reading: No such file or directory
ディレクトリがないと言われたので、
「sudo tail /etc/httpd/conf/httpd.conf」に変えて売ってみたらこうなりました。
(変えた理由はこの質問の1番上に載せたコード内にディレクトリを示すものがあったので入れてい見ました。)
# broken on your system. # Defaults if commented: EnableMMAP On, EnableSendfile Off # #EnableMMAP off EnableSendfile on # Supplemental configuration # # Load config files in the "/etc/httpd/conf.d" directory, if any. IncludeOptional conf.d/*.conf
Apacheが動かないと困るので早急に対処したいのですが治し方が分かりません。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。