1、./configure --prefix=/usr/local/test/php --with-apxs2=/usr/local/test/apache/bin/apxs --with-gd=/usr/local/test/gd2 --with-mysql=/usr/local/mysql --enable-mbstring --with-zlib-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-freetype-dir=/usr/local/test/freetype --enable-sockets --with-libxml-dir=/usr/local/libxml2 --with-mcrypt=/usr/local/test/libmcrypt --enable-ftp --with-curl=/usr/local/test/curl
2、make && make install
3、编译完一定要在httpd.conf里加:
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php .phtml
阅读(875) | 评论(0) | 转发(0) |