Jump to content

Recommended Posts

Posted

How to make a Python file directly under the document root of a hosted domain (and not under the "/public_html/cgi-bin" directory), executable?

 

I mean, how can I achieve to execute my Python file e.g. at www.example.com/index.py and not at www.example.com/cgi-bin/index.py ?

Posted

Activate Python:

Please note that you have to add a line in the .htaccess file to use Python.

The recommended directive is:

Addhandler cgi-script .py .pl .cgi

(This directive covers Perl, Python and CGI files.)

Getting a 500 Internal Server Error?

If you are getting a 500 Internal Server Error, it is most likely caused by the lack of execute permissions. Check to make sure the your Perl or Python script file has permissions of 755.

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