- Plesk for Linux
It is not possible to execute Python scripts on a server with CentOS 7/RHEL 7/CloudLinux 7. There is no option 'Python support' in domain's Hosting Settings.
Python modules for Apache are no longer supported by
project according to the Apache official website
Note: Since python officially not supported by CentOS 7/RHEL 7/CloudLinux 7 OSes, we cannot guarantee the stability of this workaround.
Connect to the server via SSH.
Install mod_python from third-party resource:
# wget http://repo.iotti.biz/CentOS/7/noarch/lux-release-7-1.noarch.rpm
# rpm -Uvh lux-release*rpm
# yum install mod_python
Refresh Plesk components in Tools & Settings > Server Components > Refresh ";
Check 'Python support' checkbox in the Hosting parameters of service plan;
Check 'Python support' checkbox in the Hosting settings of domain.