RT60 Calculator Posted July 19, 2011 Posted July 19, 2011 Hi there, Is it possible to execute Python files in a subdirectory of the cgi-bin folder in the same way as it will execute in the actual cgi-bin folder? For example: let's say I have the following Python file: /public_html/cgi-bin/my_page.py This page has been 755'ed, outputs a content header and displays a webpage as it should. However, would it work if placed in a subdirectory of cgi-bin, like this: /public_html/cgi-bin/my_subdir/my_page.py (assuming that it was the same file, i.e. has the correct permissions, etc). According to some brief searching, this is an option that can only be enabled within Apache - I'm just wondering if it has been. Thanks, RT60 Calculator Guy.
Byron Posted July 19, 2011 Posted July 19, 2011 As far as I know you don't need to enable anything for python to work in cgi-bin/sub-directories. Best way to find out is just to try it. If it doesn't work let us know.
RT60 Calculator Posted July 20, 2011 Author Posted July 20, 2011 It does, in fact, work as it should. Thanks for your advice =)
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