如何将python添加到XAMPP

如何将python添加到XAMPP,python,xampp,mod-wsgi,Python,Xampp,Mod Wsgi,我一直使用XAMPP来测试我的PHP应用程序,我已经习惯了。现在,我想用Python开始我的冒险。我听说好的解决方案是使用mod_wsgi,但它在我的电脑上不起作用。我遵循了本教程: 我犯了以下错误: [Mon Aug 08 12:27:28 2011] [warn] mod_wsgi: Compiled for Python/2.7. [Mon Aug 08 12:27:28 2011] [warn] mod_wsgi: Runtime using Python/2.7.2. [Mon Aug

我一直使用XAMPP来测试我的PHP应用程序,我已经习惯了。现在,我想用Python开始我的冒险。我听说好的解决方案是使用mod_wsgi,但它在我的电脑上不起作用。我遵循了本教程:

我犯了以下错误:

[Mon Aug 08 12:27:28 2011] [warn] mod_wsgi: Compiled for Python/2.7.
[Mon Aug 08 12:27:28 2011] [warn] mod_wsgi: Runtime using Python/2.7.2.
[Mon Aug 08 12:27:30 2011] [notice] Digest: generating secret for digest authentication ...
[Mon Aug 08 12:27:30 2011] [notice] Digest: done
[Mon Aug 08 12:27:30 2011] [notice] Child 4884: Child process is running
[Mon Aug 08 12:27:30 2011] [notice] Child 4884: Acquired the start mutex.
[Mon Aug 08 12:27:30 2011] [notice] Child 4884: Starting 150 worker threads.
[Mon Aug 08 12:27:30 2011] [notice] Child 4884: Starting thread to listen on port 443.
[Mon Aug 08 12:27:30 2011] [notice] Child 4884: Starting thread to listen on port 80.
[Mon Aug 08 12:27:30 2011] [notice] Child 4884: Starting thread to listen on port 443.
[Mon Aug 08 12:27:30 2011] [notice] Child 4884: Starting thread to listen on port 80.
我没有安装mod_python。当我输入'localost/wsgi/test.wsgi'时,我在浏览器中得到'Error 403'


我希望你能帮助我。

希望你真的在浏览器中键入'localhost/wsgi/test.wsgi'。如果您在测试中使用的URL有'localost'(缺少'h'),这将导致错误(尽管我不希望出现403)。顺便说一句,那些日志消息不是错误。我在这里输入了“localhost”,但我错了。错误403 localhost 2011-08-08 21:55:55 Apache/2.2.14(Win32)DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_wsgi/3.3 Python/2.7.2 mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 perl/v5.10.1发布映射wsgi应用程序的Apache配置片段。403错误表明您没有在Apache配置中正确设置它,或者使用了错误的URL。除非您提供Apache configuration.httpd.conf:LoadModule wsgi_module modules/mod_wsgi.so包含“conf/other/wsgi.conf”conf/other/wsgi.conf:Options ExecCGI index AddHandler cgi script.cgi AddHandler wsgi script.wsgi Order allow,deny allow-allow-from-all-Alias/wsgi/“D:/xampp/htdocs/wsgi/scripts/”WSGIScriptAlias/test“D:/xampp/htdocs/wsgi/scripts/test.wsgi”