Python CGI script returns 403 forbidden error on localhost

  • Context: Python 
  • Thread starter Thread starter zakbrown0308
  • Start date Start date
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 2K views
zakbrown0308
Messages
13
Reaction score
0
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.
 
Physics news on Phys.org
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?