Python should be installed on your cPanel server, this is so because yum needs it . So you just have to add handler for Python, as it is not created by default.
All you have to do is to edit "/etc/httpd/conf/httpd.conf" and change the following line from
AddHandler cgi-script .cgi .pl
to
AddHandler cgi-script .cgi .pl .py
Now, change the permissions on any Python script files to 755 if you have not done so already. The Python script files should now be executed if you call them from a browser..
This worked for me..
__________________
Phil
Simple, Capable, Ready For the Future
|