I'm making first python script. I've uploaded the script in public_html/cgi-bin
folder with 777
permission.
I'm getting this 500 Internal server error. I've wrote the following code.
#!/usr/bin/python
print "Content-type: text/html\r\n"
print "<html><head><title>CGI</title></head>"
print "<body>"
print "hello cgi"
print "</body>"
print "</html>"
Every thing was fine except cgi-bin
directory's permission.
Change the permission (chmod) of cgi-bin to 755 from 777.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.