Chinaunix首页 | 论坛 | 博客
  • 博客访问: 527112
  • 博文数量: 230
  • 博客积分: 5726
  • 博客等级: 大校
  • 技术积分: 2765
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-21 13:51
文章分类

全部博文(230)

文章存档

2011年(33)

2010年(40)

2009年(157)

分类: LINUX

2009-09-24 09:56:05

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
阅读(866) | 评论(0) | 转发(0) |
0

上一篇:GD库支持

下一篇:ftp架设

给主人留下些什么吧!~~