发新话题
打印

PHP 的编译安装

PHP 的编译安装

1.作为APACHE模块编译
–with-apxs2
2.作为fastcgi编译
–enable-fastcgi
–enable-force-cgi-redirect
3.动态加载PHP的extension
加载模块的后面加上shared关键词
例如–with-gd=shared
4.enable的扩展选项一样可以使用shared关键词作为外部扩展模块载入
5.with-EXTENSIONS-dir和单纯的with-EXTENSIONS的作用相同
同样是指定加载特定模块
只是可以指定目录
例子:
复制内容到剪贴板
代码:
./configure --prefix=/usr/local/php --with-config-file-path=/etc \
--with-apxs2 --enable-fastcgi --enable-force-cgi-redirect \
--with-gd=shared \
--with-jpeg-dir \
--with-png-dir \
--with-zlib-dir \
--enable-gd-native-ttf \
--with-freetype-dir=shared \
--with-zlib=shared \
--with-mysql=shared \
--with-mcrypt=shared \
--with-pear=shared \
--with-curl=shared \
--with-curlwrappers=shared \
--with-xmlrpc=shared \
--without-sqlite --disable-debug --disable-rpath \
--enable-mbstring=shared \
--enable-exif=shared \
--enable-zip=shared \
--enable-ftp=shared
空间出租:P4 3.0+1G+RIAD 1 160G+PHP+IIS+MYSQL+MDaemon

QQ:126682182
Email:hhyisw@163.com
Home:http://www.stksky.com

TOP

发新话题