mod_pyhp preprocesses scripts written in Python programming language, found inside a live web page.
PyHP mixes the power and flexibility of Python with the style and “ease of use” of PHP in the generation of dynamic web pages, all speeded up by the fast internal backend written in C.
Usage
- Installation:
autoreconf -i
./configure
make
sudo make install
- Edit Apache configuration file (httpd.conf):
LoadModule pyhp_module /usr/lib/apache2/modules/mod_pyhp.so
AddType application/x-httpd-pyhp .pyhp
- Restart Apache
- The tag let you insert inline Python code. You can open, close and reopen a pyhp tag how many times you desire.
- To include a PyHP script saved onto a file, you can use the special tag, with the following syntax:
Requirements:
- Apache2 webserver.
- APR libraries and build tools
Comments not found