CentOS 5.x ¾ÆÆÄÄ¡¿¡ mod_python ¿¬µ¿
http://www.modpython.org/
http://www.modpython.org/live/current/doc-html/

[root@localhost ~]# yum install python python-devel
[root@localhost ~]# wget http://apache.tt.co.kr/httpd/modpython/mod_python-3.3.1.tgz
[root@localhost ~]# tar xfz mod_python-3.3.1.tgz
[root@localhost ~]# cd mod_python-3.3.1
[root@localhost mod_python-3.3.1]# ./configure --with-apxs=/usr/local/apache/bin/apxs --with-python=/usr/bin/python
[root@localhost mod_python-3.3.1]# make
[root@localhost mod_python-3.3.1]# make install

httpd.conf ÆÄÀÏ ¾Æ·¡ ¼³Á¤ Ãß°¡

LoadModule python_module   modules/mod_python.so

<Directory "/home">
  AddHandler mod_python .psp .psp_ .py
  PythonHandler mod_python.psp | .psp .psp_
  PythonHandler mod_python.cgihandler | .py
  PythonDebug On
</Directory>


¾Æ·¡¿Í °°ÀÌ ¼Ò½º ÀÛ¼ºÇϰí À¥¿¡¼­ È®ÀÎ

[root@localhost www]# cat hello.py
#!/usr/bin/python
print "Content-type: text/plain\n\n";
a = "Hello?"
b = "Nice to meet you"

print a
print b
[root@localhost www]#