Changes

Jump to: navigation, search

SRA840 Lab6

811 bytes added, 01:23, 12 April 2009
no edit summary
AddType text/html php
</pre>
 
=Kezhong Liang=
 
Installing mod_perl is easy, I just use command "pkg_add -r mod_perl". But I cannot use this method to install
mod_python. The steps as below are my installing mod_pyhton method:
 
Firstly, I installed python.
 
cd /usr/ports/lang/python25
 
make install clean
 
rehash
 
The second, I installed mod_python
 
cd /usr/ports/distfiles
 
fetch http://apache.justdn.org/httpd/modpython/mod_python-3.2.10.tgz
 
tar zxvf mod_python-3.2.10.tgz
 
cd mod_python-3.2.10
 
./configure --with-apxs=/usr/local/sbin/apxs
 
./configure --with-apxs=/usr/local/sbin/apxs --with-python=/usr/local/bin/python2.5
 
make
 
make install
 
The third step, modified httpd.conf file and added the following line into group LoadModule
LoadModule python_module libexec/apache22/mod_python.so
 
Finally, I tested it, and it is OK.
1
edit

Navigation menu