PHP编译安装
1.作为APACHE模块编译 --with-apxs2 2.作为fastcgi编译 --enable-fastcg...
扫描右侧二维码阅读全文
25
2008/04

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的作用相同
同样是指定加载特定模块
只是可以指定目录

例子:
[coolcode linenum="off"]
./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
[/coolcode]

Last modification:November 26th, 2018 at 04:16 pm
If you think my article is useful to you, please feel free to appreciate

One comment

  1. xxx dream i karens

    in dream xxx karens karens dream xxx the

Leave a Comment