Jump to content

Recommended Posts

Posted

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.

Posted

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. :)

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...