1

Windows用のApache / MySQLなどのバンドルであるAMPPSでPythonを使用しようとしています。ただし、1 つだけ問題があります。実行しようとするすべてのスクリプトは、正しいコードであっても、「内部サーバー エラー」を返します。これはおそらくここに投稿する価値のない問題ですが、私は 3 時間グーグル検索しましたが、何の助けも見つかりません.

  • 私の httpd.conf はここにあります: http://pastebin.com/5DMU2cUU
  • 私が使用する 1 行のコードは次のとおりです。
  • Notepad++ は EOL 変換 -> UNIX 形式に設定されています (質問する前に)。

これが私がこれまでに知っているすべてです。これを投稿したことで私を嫌わないでください(あなたがそれをするのが好きなのは知っています)、私は新しくて混乱しています:3

4

2 に答える 2

1

mod_wsgi is already configured in AMPPS. You can see it in loaded modules of apache.

httpd.exe -D DUMP_MODULES

You just need to configure your script now. http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide

You can modify the python.conf included in httpd.conf too. i.e for using mod_wsgi directives.

This is official hello world example from mod_wsgi. Hope this helps.

于 2012-10-22T06:45:24.543 に答える