How would i enable and execute python scripts on cPanel/WHM accounts?
feedback
|
|
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:
| |||
feedback
|