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.
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