⇤ ← Revision 1 as of 2014-02-26 15:59:13
Size: 394
Comment:
|
Size: 710
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
== Build from source == | == Build from source in Slackware64 14== |
Line 15: | Line 15: |
In /usr/lib64/httpd/modules/mod_python.so Create /etc/httpd/mod_python.conf {{{ LoadModule python_module /usr/lib64/httpd/modules/mod_python.so }}} Edit /etc/httpd/httpd.conf {{{ Include /etc/httpd/mod_python.conf }}} * chmod 755 /etc/rc.d/rc.httpd * /etc/rc.d/rc.httpd start |
modpython
Mod_python is an Apache module that embeds the Python interpreter within the server. http://modpython.org/
Docs http://modpython.org/live/current/doc-html/contents.html
== Build from source in Slackware64 14==
- su
- cd /tmp
- tar xvzf mod_python-3.5.0.tgz
- cd mod_python-3.5.0
- make clean
- make
- make install
In /usr/lib64/httpd/modules/mod_python.so
Create /etc/httpd/mod_python.conf
LoadModule python_module /usr/lib64/httpd/modules/mod_python.so
Edit /etc/httpd/httpd.conf
Include /etc/httpd/mod_python.conf
- chmod 755 /etc/rc.d/rc.httpd
- /etc/rc.d/rc.httpd start