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. Quote
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. Quote
RT60 Calculator Posted July 20, 2011 Author Posted July 20, 2011 It does, in fact, work as it should. Thanks for your advice =) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.