Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

*really* basic cgi help

  1. Sep 3, 2010 #1
    I'm trying to run a cgi script written in python. Everything is on my own computer. And when I say basic, I really mean basic. It's nothing more then a simple "hello world" statement. I've configured the document root to the right folder "c:/programfiles/apache2". And the url is "localhost:8080/cgi-bin/example.cgi"
    But for some reason or another, I just cannot get it to run. It always tells me 403 forbidden error thing, telling me I don't have permission to access that directory on the server. and I have adjusted the security settings to be able to access the file the conventional way (file--> open). Is there some kind of security measure I don't know about? Please help.
     
  2. jcsd
  3. Sep 3, 2010 #2
    I've never tried Apache in Windows, but this might provide some clues:

    http://my.opera.com/NoteMe/blog/running-python-as-cgi-in-apache-in-windows

    Other things to check (I'm just guessing here) would be that you can get at Python proper, not just the script itself. IE, your webserver needs to be able to have access to the Python executable AND the script that you're running (plus any other libraries).

    DaveE
     
  4. Sep 3, 2010 #3
    Doesn't seem to be working. I can't find the #ScriptInterpreterSource Registry line in the configuration file. Also, I don't really have a database like SQL. Are those strictly necessary?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: *really* basic cgi help
  1. Cgi-bin script issue (Replies: 7)

  2. Basic C++ Help (Replies: 8)

  3. Visual Basic Help (Replies: 1)

  4. Basic Labview Help (Replies: 3)

  5. Basic python help? (Replies: 3)

Loading...