BlackThuder Posted April 17, 2011 Posted April 17, 2011 Hi I am not able to read anything anything in cgi-bin When I try to open http://urjas.heliohost.org/cgi-bin/ It shows ---------------------------------------------------------------------------------------------------------------------------------- Forbidden You don't have permission to access /cgi-bin/ on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. ---------------------------------------------------------------------------------------------------------------------------------- I have changed the folder permission to 755. Not sure why it does not work. Any idea. I have written some python code and want to start testing. Regards PK 1
Guest Geoff Posted April 17, 2011 Posted April 17, 2011 You need to Enable directory indexing: Options +Indexes in .htaccess.
Byron Posted April 17, 2011 Posted April 17, 2011 The cgi-bin is set up that way by default. Just give your script a name other than index.py, ie. cgi-bin/my_script.py
BlackThuder Posted April 17, 2011 Author Posted April 17, 2011 Did that ... named it Hi.py and it has at the beginning #!/usr/bin/env python print "Content-type: text/plain\n" Shows a internal server error. Check that out at http://urjas.heliohost.org/cgi-bin/Hi.py I think I got it ... The file should have usr/bin/python at the top ... cnt check nnow ... Johnny seems to be down
Guest Geoff Posted April 17, 2011 Posted April 17, 2011 The file should have usr/bin/python at the top ... cnt check nnow ... Johnny seems to be down See the issue in escalated requests.
tushar992 Posted August 30, 2014 Posted August 30, 2014 on opening the python script in "my_script.py" file in cgi-bin folderhttp://youtubedownloader.heliohost.org/cgi-bin/my_script.pyand it is showing:internal server error and additionally a 404 not found error.and the script in my_script.py file isCODE:#!/usr/bin/pythonprint "Content-type: text/plain\n"
yashrs Posted August 30, 2014 Posted August 30, 2014 First of all, please don't bring up posts which are three years old. Anyway, this works:-#!/usr/bin/python print("Content-Type: text/html\n\n"); print("Hello");http://yashrs.heliohost.org/cgi-bin/hello.py Also, your my_script.py file should be have permission 755.
To175 Posted October 27, 2014 Posted October 27, 2014 Why "First of all, please don't bring up posts which are three years old." ?Do you really prefer that we create new post ? Hundreds and hundreds of posts, same subjects, all unsolved...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now