
私は専用サーバーを持っています。ウェブサイトを使用するときにPHPファイルは実行されていなかったので、Apacheを調べてservice https status
Apacheのステータスを確認してみましたが、サービスhttpdステータスが表示されました。
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@mps-vm1 and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
さらに、ErrorDocument を使用してリクエストを処理しようとしたときに、500 内部サーバー エラーが発生していました。
Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fipsmod_bwlimited/1.4 Server at localhost Port 80
誰か私に何をすべきか教えてもらえますか?
答え1
service httpd status
Apacheの/server-status/ページを取得します( によって提供されますmod_status
)。これはapachectl status
、(DebianまたはUbuntuの場合はapache2ctlを介して)実行されます。
これは、設定がロードできないことを意味している可能性があります。Webapachectl configtest
サーバーを再ロード/再起動する前に、 を使用して設定をテストできます。
デフォルトでは、エラー メッセージは (または、リクエストの受信方法に応じて ssl_error_log) にも表示されます/var/log/httpd/error_log
。このような状況では、これらが最初の参照先になります。
答え2
そこで、APACHE を再インストールすることで問題を解決しました。それが唯一の方法のようでした。おそらく、インストール ファイルに変更を加えたときに、何かひどい間違いを犯して Apache を台無しにしてしまったのでしょう。