The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    6
    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,279
    Likes Received:
    8
    Trophy Points:
    38
    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:
    16
    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 
    
     
Loading...

Share This Page