I'm in internet programming, and we are doing .cgi, but for the life of me, I cannot get my .cgi script to run at all, I know other people have it working, but mine just refuses to run. Any suggestions?
#!/usr/bin/env python
print "Content-type: text/html"
print
print "<html><head><title>CGI</title></head>"
print "<body>"
print "hello cgi"
print "</body>"
print "</html>"
I have chmod 755 the file multiple times, i have tried using #!/usr/bin/python
and #!usr/local/bin/python
. I tried putting it in a folder named cgi-bin and I've made sure that it is saved with unix line endings, but all I ever get is internal server error. I know I had it working in class, but now it just refuses to run, any help guys? Thanks?