ブラウザでpythonファイルを実行します。 私はApacheをインストールしました。ファイルはhttd.conf
に設定されています。 test.py
ファイルを作成しました。 htt://localhost/test.py
と入力してtest.py
をブラウザで実行しようとしました。私はこれを行うと、私は次のエラーを取得する:私のエラーログにブラウザで.pyファイルを実行する
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] 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.
[Thu Jul 07 18:39:55 2011] [error] [client 127.0.0.1] (OS 2)The system cannot find the file specified. : couldn't create child process: 720002: test.py
[Thu Jul 07 18:39:55 2011] [error] [client 127.0.0.1] (OS 2)The system cannot find the file specified. : couldn't spawn child process: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/test.py
ここに問題がある可能性がありますか?
Pythonをブラウザで実行するということは、サーバーではなくブラウザを設定する必要があるということです。あなたのブラウザでPythonを実行すると、あなたのブラウザ(FireFox、IE、Opera、Safariなど)はPythonを実行しています。これはApacheとは関係ありません。本当に**あなたは何をしようとしていますか? –
@ S.Lottそしてブラウザの設定方法は? –