PHP ./configure 配置及详解


./configure \
--prefix=/www/server/php \                      [PHP安装目录]
--with-config-file-path=/www/server/php/etc \   [PHP配置文件目录]
--with-mhash \                                  [启用mhash算法扩展]
--with-openssl \                                [openssl的支持,加密传输https时用到的]
--with-gd \                                     [打开gd库的支持]
--with-iconv \                                  [开启iconv函数,字符集间的转换]
--with-zlib \                                   [打开zlib库的支持,用于http压缩传输]
--enable-zip \                                  [打开对zip的支持]
--enable-inline-optimization \                  [优化线程]
--disable-debug \                               [关闭调试模式]
--disable-rpath \                               [关闭额外的运行库文件]
--enable-shared \                               [启用动态库版本]
--enable-xml \                                  []
--enable-bcmath \                               [打开图片大小调整,用到zabbix监控的时候用到了这个模块]
--enable-shmop \                                [使得你的PHP系统可以处理相关的IPC函数]
--enable-sysvsem \                              [使得你的PHP系统可以处理相关的IPC函数]
--enable-mbregex \                              []
--enable-mbstring \                             [多字节,字符串的支持]
--enable-ftp \                                  [打开ftp的支持]
--enable-gd-native-ttf \                        [支持TrueType字符串函数库]
--enable-pcntl \                                [freeTDS需要用到的,可能是链接mssql才用到]
--enable-sockets \                              [打开sockets支持]
--with-xmlrpc \                                 [打开xml-rpc的c语言]
--enable-soap \                                 []
--without-pear \                                [不安装PEAR]
--with-gettext \                                [打开gnu的gettext支持,编码库用到]
--enable-session \                              []
--with-curl \                                   [打开curl浏览工具的支持]
--with-jpeg-dir \                               [打开对jpeg图片的支持]
--with-freetype-dir \                           [打开对freetype字体库的支持]
--enable-opcache \                              []
--enable-fpm \                                  [打上php-fpm补丁后才有这个参数,cgi方式安装的启动程序]
--with-fpm-user=nginx \                         [fpm指定用户]
--with-fpm-group=nginx \                        [fpm指定用户组]
--without-gdbm \                                [关闭dba的gdbm支持]
--with-iconv-dir \                              [用于PHP编译时指定iconv在系统里的路径,否则会扫描默认路径]
--with-kerberos \                               []
--with-libdir=lib64 \                           []
--with-libxml-dir \                             [打开libxml2库的支持]
--with-mysqli \                                 [扩展技术不仅可以调用MySQL的存储过程、处理MySQL事务,而且还可以使访问数据库工作变得更加稳定]
--with-pdo-sqlite \                             []
--with-png-dir \                                [打开对png图片的支持]
--with-xsl \                                    [打开XSLT文件支持,扩展了libXML2库,需要libxslt软件]
--enable-libxml \                               []
--disable-fileinfo                              []



  PHP
 

音乐的名字啊名字
  • 00:00