さくらのサーバ。PHPスクリプトがInternal Server Errorになった原因と解決方法

チップス

移行してきたスクリプトの実行権限を与えてもエラーになる。

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at support@sakura.ad.jp to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

コントロールパネルのアクセスログ→エラーログから確認する。

[Sun Oct 28 20:18:57.251369 2018] [cgi:error] [pid 12725] [client xxx.xxx.103.91:0] AH01215: suexec policy violation: see suexec log for more details: /home/xxxxx/www/xxxxx/index.php
[Sun Oct 28 20:18:57.251423 2018] [cgi:error] [pid 12725] [client xxx.xxx.103.91:0] End of script output before headers: index.php

SUECECが処理を許可してくれないのだろうか?調べていたところディレクトリとスクリプトの実行権限は705か755にしないといけないということで設定変更したら問題なく実行されるようになりました。

chmod 755 ./index.php
チップス
スポンサーリンク
シェアする
gomiryoをフォローする
ごみぶろぐ

コメント

  1. […] さくらのサーバ。PHPスクリプトがInternal Server Errorになった原因と解決方法 | ごみぶろぐ […]

タイトルとURLをコピーしました