suExec policy violation python script

  • Answered
On a Pro Shared Hosting plan, I want to start utilizing Python so I created a simple script and placed it in

#!/usr/bin/env python
print("Hello World!")
print("This is a Python program.")

Browsing to the script in that directory, I receive a 500 internal error. In cPanel, the error log contains the following two lines:

[Wed Feb 24 15:43:34.257736 2016] [cgi:error] [pid 302969:tid 139858368947968] [client] AH01215: suexec policy violation: see suexec log for more details: /home/path/to/file

[Wed Feb 24 15:43:31.624933 2016] [access_compat:error] [pid 303394:tid 139858310199040] [client] AH01797: client denied by server configuration: /home/path/to/domain

I confirmed that the folder permission is set at 755, and that the file permission is 644. What is wrong?

Hello Nealb,

Sorry for the problem with the Python script. As per our tutorial showing a sample Python script it appears that you're missing the add- handler in the .htaccess file. Check out the tutorial for the code. If that doesn't fix the issue, you I would recommend that you speak with our live support team concerning Python access/configuration on your server. Apologies again for the problem with running the Python code. If you have any further questions, please let us know.

Kindest regards,

Arnel C.