How Can I Run Python Cgi Scripts On My Web Server?
I want to run a Python CGI script on my web server (Apache 2.2). When I try to run the test.py file I get the following error:
Solution 1:
The error log is telling you that your Web server isn't configured to allow running CGI scripts from that directory.
See How do I enable CGI execution in directories other than the ScriptAlias? in the Apache FAQ.
Solution 2:
Add Options ExecCGI
to a .htaccess
file in the folder where the python file is located.
Besides that, don't use CGI but WSGI to execute python apps...
Solution 3:
Try mod_python.it's an apache module which gets embedded in apache itself and allow users to run python scripts on
Post a Comment for "How Can I Run Python Cgi Scripts On My Web Server?"