Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Mod_python in cPanel

Discussion in 'General Discussion' started by MethOd63, Aug 5, 2009.

  1. MethOd63

    MethOd63 Active Member

    Joined:
    Aug 20, 2007
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    56
    How can i install mod_python in cpanel and whm system ???

    Thanks for answer.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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.
     
  3. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    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 
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice