configuring apache for cgi scripts
I am trying to run python scripts on apache. UN fortunately, each time i click on the submit, the script doesnt execute. Instead the text of the entire script is dumped on the screen ( to the browser). I dont know what setting i need to change in the httpd.conf file to get the scritps running. can anyone please help me with this?
|
First off, make sure that your script is executable, and that regular users have permission to execute it. Make sure that the shebang line points to your python interpreter ie: #!/usr/bin/python
Now: You are looking for a section in httpd.conf that looks like this: Code:
<Directory "/home/httpd/htdocs"> Code:
Options Indexes FollowSymLinks MultiViews ExecCGI |
All times are GMT -5. The time now is 08:40 AM. |