Size: 394
Comment:
|
← Revision 4 as of 2015-03-12 21:41:58 ⇥
Size: 747
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## page was renamed from modpython | |
Line 6: | Line 7: |
== Build from source == | == Build from source in Slackware64 14 == |
Line 15: | Line 16: |
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