10[FAIL]

0 目的

mod python第一个例子

1 设备

VPS +CentOS

2 步骤

1 http://archive.apache.org/dist/httpd/modpython/mod_python-3.3.1.tgz

2 tar -zxf *.tgz

3 yum install httpd-devel

4 which apxs

5 yum install gcc

6 vi src/connobject.c

:142

!(b == APR_BRIGADE_SENTINEL(b) ||

#changes to

!(b == APR_BRIGADE_SENTINEL(bb) ||

7 ./configure --prefix=/usr/local/mod_python \--with-apxs=/usr/local/http/bin/apxs \ --with-python=/usr/bin/python

3 原理

linux 上构建php需要mysql支持

Description : The php-mysql package contains a dynamic shared object that will add

            : MySQL database support to PHP. MySQL is an object-relational database

            : management system. PHP is an HTML-embeddable scripting language. If

            : you need MySQL support for PHP applications, you will need to install

            : this package and the php package.

4 拓展

你可能感兴趣的:(10[FAIL])