cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
How can i install mod_python in cpanel and whm system ???

Thanks for answer.
We do not natively support mod_python at this time. However, there is an EasyApache Custom Optional module you can use to add mod_python support in EasyApache. This module is not supported at all by our staff, but is available for use at your own risk at: EasyApache - cPanel Inc.
 

david510

Well-Known Member
Aug 22, 2004
473
0
166
Follow the steps given below.
Code:
wget http://apache.dataphone.se/httpd/modpython/mod_python-3.3.1.tgz
tar zxvf mod_python-3.3.1.tgz
cd mod_python-3.3.1
./configure --with-apxs=/usr/local/apache/bin/apxs
make
make install
Add the following into the LoadModule section in the httpd.conf file.
Code:
LoadModule python_module libexec/mod_python.so
Add module in httpd.conf file.
Code:
AddModule mod_python.c
Add the following to a .htaccess file of a domain and take a python file in the browser.
Code:
AddHandler python-program .py
PythonHandler testingpython
PythonDebug On