How would i enable and execute python scripts on cPanel/WHM accounts?
closed as off topic by Chris S♦ Jul 22 '12 at 20:22
Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.
You can download the mod_python here : wget http://archive.apache.org/dist/httpd/modpython/mod_python-3.3.1.tgz
Extract and configure the mod_python: ./configure --with-apxs=/usr/local/apache/bin/apxs make make install
Now you have to add the mod_python module to apache : Locate where is mod_python.so is and then add the module to apache config file (/usr/local/apache/conf/httpd.con) : LoadModule python_module libexec/mod_python.so
Restart apache and you
No you have finished with apache and you should configure the virtual host : go to /home/username/public_html and create a .htaccess file which containing: