自作CGIがInternal Server Error

Facebooktwittermail

昨日、当サイトをCentOS 5からCentOS 7に移行しましたが、自作CGIが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 admin@localhost 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.


Perlで作成したCGIなのですがCentOS 5では動作していたので、何かモジュールが不足している?

詳細はエラーログを確認とあるので確認するとありました。

PerlモジュールのCGI.pmが無くてエラーになっているようです。
確かに無いな。

yum searchで検索するとそれらしいモジュールがありました。

perl-CGIでいいのかな。

再度自作CGIを実行すると無事に動いてくれました。
エラーメッセージはしっかり読まないとダメですね。

Leave a Reply