# yum --enablerepo=remi,remi-php56 install php-fpm php-common php-mysql php-opcache php-pear php-gd php-devel php-mbstring php-mcrypt php-cli php-pdo php-xml -y

# yum --enablerepo=remi,remi-php56 install php-intl php-imap –y

 

前面的安装一般就够了,后面的为国际化的扩展

 

 

 

另附5.6的编译安装:

Linux下编译PHP时选项参数相当多,今天下决心./configure --help > help.txt导出一份编译选项清单并翻译了,方便以后查阅.

SAPI modules(PHP SAPI接口模块的选项):

大部分与apache、nginx等web服务有关

  1. --with-aolserver=DIR AOLserver的安装路径
  2. --with-apxs=FILE 编译出apache1.x版本的共享模块所存放的路径
  3. --with-apache=DIR 编译出apache1.x版本的模块,这里设定为apache软件根目录
  4. --enable-mod-charset 启用apachemod_charset(俄文apache用的)
  5. --with-apxs2filter=FILE 编译apache2.0的共享过滤模块,这里设定为apache apxs工具的路径
  6. --with-apxs2=FILE 编译共享apache2.0处理程序的模块,这里设定为apache apxs工具的路径
  7. --with-apache-hooks=FILE共享的apache1.0的钩子模块,这里设定为apache apxs工具的路径
  8. --with-apache-hooks-static=DIR 这里设定为apache apxs工具的路径
  9. --disable-cli 禁用命令行模式(php-cli)
  10. --with-continuity=DIR 编译php为连续服务模块。参数为安装Continuity Server的根目录
  11. --enable-embed=TYPE 建立内嵌的SAPI库。参数为sharedstatic
  12. --enable-fpm 开启fpm模式(nginx等服务用的)
  13. --with-fpm-user=USER fpm运行的用户,默认为nobody
  14. --with-fpm-group=GRP fpm运行的组,默认为nobody
  15. --with-fpm-systemd 激活系统集成功能,开启后fpm可以上报给系统一些信息
  16. --with-fpm-acl 使用POSIX 访问控制列表,5.6.5版本起有效
  17. --with-isapi=DIR Zeus web服务器建立ISAPI模块
  18. --with-litespeed 编译PHPlitespeed模块
  19. --with-milter=DIR 编译PHPMilter应用程序
  20. --with-nsapi=DIR Netscape/iPlanet/Sun Web服务器编译PHPNSAPI模块
  21. --enable-phpdbg 编译开启phpdbg调试器
  22. --enable-phpdbg-debug 编译phpdbg调试器为debug模式
  23. --with-phttpd=DIR 编译PHPphttpd模块
  24. --with-pi3web=DIR 编译PHPpi3web模块
  25. --with-roxen=DIR 编译PHProxen模块
  26. --enable-roxen-zts 编译PHProxen模块,线程安全
  27. --with-thttpd=SRCDIR 编译PHPthttpd模块
  28. --with-tux=MODULEDIR 编译PHPtux模块
  29. --with-webjames=SRCDIR 编译PHPwebjames模块
  30. --disable-cgi 禁用cgi
General settings(综合设置):
  1. --enable-gcov 开启gcov支持(测试代码覆盖率功能,)
  2. --enable-debug Compile with debugging symbols
  3. --with-layout=TYPE Set how installed files will be laid out. Type can
  4. be either PHP or GNU [PHP]
  5. --with-config-file-path=PATH php.ini文件位置[PREFIX/lib]
  6. --with-config-file-scan-dir=PATH 扫描配置文件的路径
  7. --enable-sigchild 使用PHP自带的SIGCHLD处理器
  8. --enable-libgcc 启用libgcc的精确链接
  9. --disable-short-tags 默认禁用短形式的<?作为php代码的开始标记
  10. --enable-dmalloc 启用dmallocdmallocLinux C编程侦测记忆体溢出工具)
  11. --disable-ipv6 关闭ipv6支持
  12. --enable-dtrace 开启DTrace(动态跟踪)支持
  13. --enable-fd-setsize 设置描述集的大小
Extensions(扩展):
  1. Extensions:
  2. --with-EXTENSION=shared[,PATH]
  3. 并非所有扩展都能编译成共享方式
  4. NOTE: Not all extensions can be build as 'shared'.
  5. 给个例子,如何把扩展编译成共享模式:
  6. Example: --with-foobar=shared,/usr/local/foobar/
  7. o Builds the foobar extension as shared extension.
  8. o foobar package install prefix is /usr/local/foobar/
  9. --disable-all 关闭默认为启用的所有扩展功能
  10. --with-regex=TYPE 正则表达式库类型。选项:system|php(默认) 警告:如果你不知道这是干嘛的就别动这个选项了!
  11. --disable-libxml 禁用LIBXML支持
  12. --with-libxml-dir=DIR LIBXML安装目录
  13. --with-openssl=DIR 启用openssl支持 (OpenSSL版本号必须大于等于 0.9.6)
  14. --with-kerberos=DIR OPENSSL: 包含kerberos支持
  15. --with-system-ciphers OPENSSL: 用系统自带的密码清单(cipher list)去替代硬编码(hard coded)
  16. --with-pcre-regex=DIR 引用pear兼容的正则表达式库
  17. --without-sqlite3=DIR 不开启sqlite3支持
  18. --with-zlib=DIR 开启ZLIB支持 (ZLIB版本号必须大于等于 1.0.9)
  19. --with-zlib-dir=<DIR> ZLIB的安装路径
  20. --enable-bcmath 启用bcmatch(公元前风格精度数学)
  21. --with-bz2=DIR 开启BZip2
  22. --enable-calendar 启用日历转换支持
  23. --disable-ctype 禁用ctype功能
  24. --with-curl=DIR 启用cURL支持
  25. --enable-dba 构架捆绑模块的DBA。要建立扩展的共享模块使用--enable-dba=shared参数。
  26. --with-qdbm=DIR DBA: QDBM support
  27. --with-gdbm=DIR DBA: GDBM support
  28. --with-ndbm=DIR DBA: NDBM support
  29. --with-db4=DIR DBA: Oracle Berkeley DB 4.x or 5.x support
  30. --with-db3=DIR DBA: Oracle Berkeley DB 3.x support
  31. --with-db2=DIR DBA: Oracle Berkeley DB 2.x support
  32. --with-db1=DIR DBA: Oracle Berkeley DB 1.x support/emulation
  33. --with-dbm=DIR DBA: DBM support
  34. --with-tcadb=DIR DBA: Tokyo Cabinet abstract DB support
  35. --without-cdb=DIR DBA: CDB support (bundled)(捆绑方式)
  36. --disable-inifile DBA: INI support (bundled)(捆绑方式)
  37. --disable-flatfile DBA: FlatFile support (bundled)(捆绑方式)
  38. --disable-dom 禁用DOM支持
  39. --with-libxml-dir=DIR DOM: 启用libxml2并指定其安装目录
  40. --with-enchant=DIR 启用 enchant 支持.GNU Aspell 版本号必须高于 1.1.3
  41. --enable-exif 启用EXIF支持(从图片中获取元数据)
  42. --disable-fileinfo 关闭fileinfo支持
  43. --disable-filter 关闭 input filter 支持
  44. --with-pcre-dir FILTER: pcre install prefix
  45. --enable-ftp 开启ftp支持
  46. --with-openssl-dir=DIR FTP: openssl install prefix
  47. --with-gd=DIR 开启GD图像处理库
  48. --with-vpx-dir=DIR GD: 指定libvpx的安装目录
  49. --with-jpeg-dir=DIR GD: 指定libjpeg的安装目录
  50. --with-png-dir=DIR GD: 指定libpng的安装目录
  51. --with-zlib-dir=DIR GD: 指定libz的安装目录
  52. --with-xpm-dir=DIR GD: 指定libXpm的安装目录
  53. --with-freetype-dir=DIR GD: 指定FreeType2的安装目录
  54. --with-t1lib=DIR GD: 指定T1lib支持
  55. --enable-gd-native-ttf GD: 启用TureType字符功能
  56. --enable-gd-jis-conv GD: 启用JIS-mapped日语字体支持
  57. --with-gettext=DIR 包含GNU gettext支持
  58. --with-gmp=DIR 启用GNU MP支持
  59. --with-mhash=DIR 指定mhash的目录
  60. --disable-hash 禁用hash支持
  61. --without-iconv=DIR 禁用iconv支持
  62. --with-imap=DIR 包含IMAP支持。指定c-client安装目录
  63. --with-kerberos=DIR IMAP: 启用kerberos支持并指定其目录
  64. --with-imap-ssl=DIR IMAP: 启用ssl支持并指定openssl目录
  65. --with-interbase=DIR 启用interbase支持并指定其目录
  66. --enable-intl 开启国际化支持(internationalization)
  67. --with-icu-dir=DIR Specify where ICU libraries and headers can be found
  68. --disable-json 关闭json支持
  69. --with-ldap=DIR 开启 LDAP 支持
  70. --with-ldap-sasl=DIR LDAP: 开启 Cyrus SASL 支持
  71. --enable-mbstring 启用多字节字符串的支持
  72. --disable-mbregex MBSTRING: 禁用多字节正则表达式的支持
  73. --disable-mbregex-backtrack MBSTRING: 禁用多字节正则表达式回溯检查
  74. --with-libmbfl=DIR MBSTRING: 使用外部的libmbfl并制定其目录
  75. --with-onig=DIR MBSTRING: 使用外部的onig并制定其目录
  76. --with-mcrypt=DIR 包含mcrypt支持
  77. --with-mssql=DIR 包含MSSQL-DB支持,并指定FreeTDS软件目录
  78. --with-mysql-sock=SOCKPATH 定位mysqlunix 套接字指针。如果未指定,则按默认位置搜索。
  79. --with-zlib-dir=DIR MySQL: 设置zlib的安装目录
  80. --with-mysqli=FILE 包含MySQLi支持。参数为mysql_config的位置
  81. --enable-embedded-mysqli MYSQLi: 启用embedded支持。
  82. --with-oci8=DIR 包含Oracle支持。如果使用Oracle客户端安装则使用--with-oci8=instantclient,/path/to/oic/lib
  83. --with-odbcver=HEX Force support for the passed ODBC version. A hex number is expected, default 0x0300.
  84. Use the special value of 0 to prevent an explicit ODBCVER to be defined.
  85. --with-adabas=DIR Include Adabas D support /usr/local
  86. --with-sapdb=DIR Include SAP DB support /usr/local
  87. --with-solid=DIR Include Solid support /usr/local/solid
  88. --with-ibm-db2=DIR Include IBM DB2 support /home/db2inst1/sqllib
  89. --with-ODBCRouter=DIR Include ODBCRouter.com support /usr
  90. --with-empress=DIR Include Empress support \$EMPRESSPATH
  91. (Empress Version >= 8.60 required)
  92. --with-empress-bcs=DIR
  93. Include Empress Local Access support \$EMPRESSPATH
  94. (Empress Version >= 8.60 required)
  95. --with-birdstep=DIR Include Birdstep support /usr/local/birdstep
  96. --with-custom-odbc=DIR Include user defined ODBC support. DIR is ODBC install base
  97. directory /usr/local. Make sure to define CUSTOM_ODBC_LIBS and
  98. have some odbc.h in your include dirs. f.e. you should define
  99. following for Sybase SQL Anywhere 5.5.00 on QNX, prior to
  100. running this configure script:
  101. CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\"
  102. LDFLAGS=-lunix
  103. CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\"
  104. --with-iodbc=DIR Include iODBC support /usr/local
  105. --with-esoob=DIR Include Easysoft OOB support /usr/local/easysoft/oob/client
  106. --with-unixODBC=DIR Include unixODBC support /usr/local
  107. --with-dbmaker=DIR Include DBMaker support
  108. --enable-opcache Enable Zend OPcache support
  109. --enable-pcntl Enable pcntl support (CLI/CGI only)
  110. --disable-pdo Disable PHP Data Objects support
  111. --with-pdo-dblib=DIR PDO: DBLIB-DB support. DIR is the FreeTDS home directory
  112. --with-pdo-firebird=DIR PDO: Firebird support. DIR is the Firebird base
  113. install directory /opt/firebird
  114. --with-pdo-mysql=DIR PDO: MySQL support. DIR is the MySQL base directory
  115. If no value or mysqlnd is passed as DIR, the
  116. MySQL native driver will be used
  117. --with-zlib-dir=DIR PDO_MySQL: Set the path to libz install prefix
  118. --with-pdo-oci=DIR PDO: Oracle OCI support. DIR defaults to \$ORACLE_HOME.
  119. Use --with-pdo-oci=instantclient,prefix,version
  120. for an Oracle Instant Client SDK.
  121. For example on Linux with 11.2 RPMs use:
  122. --with-pdo-oci=instantclient,/usr,11.2
  123. With 10.2 RPMs use:
  124. --with-pdo-oci=instantclient,/usr,10.2.0.4
  125. --with-pdo-odbc=flavour,dir
  126. PDO: Support for 'flavour' ODBC driver.
  127. include and lib dirs are looked for under 'dir'.
  128. 'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic
  129. If ',dir' part is omitted, default for the flavour
  130. you have selected will be used. e.g.:
  131. --with-pdo-odbc=unixODBC
  132. will check for unixODBC under /usr/local. You may attempt
  133. to use an otherwise unsupported driver using the \"generic\"
  134. flavour. The syntax for generic ODBC support is:
  135. --with-pdo-odbc=generic,dir,libname,ldflags,cflags
  136. When built as 'shared' the extension filename is always pdo_odbc.so
  137. --with-pdo-pgsql=DIR PDO: PostgreSQL support. DIR is the PostgreSQL base
  138. install directory or the path to pg_config
  139. --without-pdo-sqlite=DIR
  140. PDO: sqlite 3 support. DIR is the sqlite base
  141. install directory BUNDLED
  142. --with-pgsql=DIR Include PostgreSQL support. DIR is the PostgreSQL
  143. base install directory or the path to pg_config
  144. --disable-phar Disable phar support
  145. --disable-posix Disable POSIX-like functions
  146. --with-pspell=DIR Include PSPELL support.
  147. GNU Aspell version 0.50.0 or higher required
  148. --with-libedit=DIR Include libedit readline replacement (CLI/CGI only)
  149. --with-readline=DIR Include readline support (CLI/CGI only)
  150. --with-recode=DIR Include recode support
  151. --disable-session Disable session support
  152. --with-mm=DIR SESSION: Include mm support for session storage
  153. --enable-shmop Enable shmop support
  154. --disable-simplexml Disable SimpleXML support
  155. --with-libxml-dir=DIR SimpleXML: libxml2 install prefix
  156. --with-snmp=DIR Include SNMP support
  157. --with-openssl-dir=DIR SNMP: openssl install prefix
  158. --enable-soap Enable SOAP support
  159. --with-libxml-dir=DIR SOAP: libxml2 install prefix
  160. --enable-sockets Enable sockets support
  161. --with-sybase-ct=DIR Include Sybase-CT support. DIR is the Sybase home
  162. directory /home/sybase
  163. --enable-sysvmsg Enable sysvmsg support
  164. --enable-sysvsem Enable System V semaphore support
  165. --enable-sysvshm Enable the System V shared memory support
  166. --with-tidy=DIR Include TIDY support
  167. --disable-tokenizer Disable tokenizer support
  168. --enable-wddx Enable WDDX support
  169. --with-libxml-dir=DIR WDDX: libxml2 install prefix
  170. --with-libexpat-dir=DIR WDDX: libexpat dir for XMLRPC-EPI (deprecated)
  171. --disable-xml Disable XML support
  172. --with-libxml-dir=DIR XML: libxml2 install prefix
  173. --with-libexpat-dir=DIR XML: libexpat install prefix (deprecated)
  174. --disable-xmlreader Disable XMLReader support
  175. --with-libxml-dir=DIR XMLReader: libxml2 install prefix
  176. --with-xmlrpc=DIR Include XMLRPC-EPI support
  177. --with-libxml-dir=DIR XMLRPC-EPI: libxml2 install prefix
  178. --with-libexpat-dir=DIR XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated)
  179. --with-iconv-dir=DIR XMLRPC-EPI: iconv dir for XMLRPC-EPI
  180. --disable-xmlwriter Disable XMLWriter support
  181. --with-libxml-dir=DIR XMLWriter: libxml2 install prefix
  182. --with-xsl=DIR Include XSL support. DIR is the libxslt base
  183. install directory (libxslt >= 1.1.0 required)
  184. --enable-zip Include Zip read/write support
  185. --with-zlib-dir=DIR ZIP: Set the path to libz install prefix
  186. --with-pcre-dir ZIP: pcre install prefix
  187. --with-libzip=DIR ZIP: use libzip
  188. --enable-mysqlnd Enable mysqlnd explicitly, will be done implicitly
  189. when required by other extensions
  190. --disable-mysqlnd-compression-support
  191. Disable support for the MySQL compressed protocol in mysqlnd
  192. --with-zlib-dir=DIR mysqlnd: Set the path to libz install prefix

php5.6安装的更多相关文章

  1. php5.6安装Zend Opcache扩展

    假设php5.6安装路径为/data2/php[root@nextcloud src]# pwd/usr/local/src[root@nextcloud src]# wget http://pecl ...

  2. Linux下Apache2.2和PHP5的安装配置

    Linux下Apache2.2和PHP5的安装配置 环境介绍 我安装使用的Linux版本为CentOS6.5最精简版,Apache为2.2.29,PHP版本为5.4.28. 系统安装 首先安装Cent ...

  3. PHP5.6 安装Yaf 2.3.5

    Yaf 安装 PHP5.6 安装Yaf 2.3.5 1.下载 https://github.com/laruence/yaf 2.phpize /usr/bin/phpize 3.配置 ./confi ...

  4. 给CentOS6.3 + PHP5.3 安装PHP性能测试工具 XHProf-0.9.2

    一.什么是XHProf XHProf官网:http://pecl.php.net/package/xhprof XHProf是一个分层PHP性能分析工具.它报告函数级别的请求次数和各种指标,包括 阻塞 ...

  5. php5.5安装及phpmyadmin&nginx配置php模块

    安装php5.5: 下载源地址:rpm -Uvh rpm包安装:yum install php55w.x86_64 php55w-cli.x86_64 php55w-common.x86_64 php ...

  6. PHP5.4安装xhprof扩展[不要去pecl下载]

    HP5.3或之前版本可以去pecl(http://pecl.php.net)下载xhprof扩展安装. 但pecl上的版本不支持PHP5.4 可以到github上的xhprof库中下载:https:/ ...

  7. [转]PHP5.5安装PHPRedis扩展

    phpredis是个人觉得最好的一个php-redis客户端,因为其提供的function与redis的命令基本一致,降低的了学习成本,同时功能也很全面. 一.linux安装方法 phpredis下载 ...

  8. windows8 64位 IIS8 PHP5.5 安装 Imagemagick 组件

    为什么这里一定要说 windows 系统是64位呢,因为如果是系统是64位,那么PHP5.5 一般都会选择64的, Imagemagick 组件也会选择64位的, 但是操蛋的是 64位的Imagema ...

  9. Linux下 nginx + 最新版php5.5 安装配置详解

    1.nginx的安装: 首先nginx的安装需要依赖最基础的三个包,这里面我们不设计更多的扩展模块,只是安装最基础的三个包, zlib 此包主要是对http内容进行gzip压缩,减少网络传输流量 PC ...

  10. win7 64位的PHP5.4安装redis扩展

    先看phpinfo.php信息 可以看是 PHP5.4 VC9 TS Architecture x86 说明是x86的PHP,虽然系统是64位的,所以还是要下载x86的redis 然后Github下载 ...

随机推荐

  1. unity3d ppsspp模拟器中的post processing shader在unity中使用

    这个位置可以看到ppsspp的特殊处理文件位置来看看这些特效 用来测试的未加特效图片 ppsspp: 传说系列一生爱---英杰传说 最后的战士 aacolor 是关于饱和度,亮度,对比度,色调的调节, ...

  2. 获得当前屏幕的CGRect

    CGRect mainScreen = [[UIScreen mainScreen] bounds];

  3. XCode4 下制作Framework的方法

    http://www.cocoachina.com/bbs/read.php?tid-75680-page-1.html

  4. mysqldump的常用语句及各参数详解

    mysqldump的常用语句及各参数详解 分类: MySQL 2011-01-11 17:55 1368人阅读 评论(0) 收藏 举报 数据库mysql服务器tableinsertdatabase m ...

  5. xCode里面设置NSZombieEnabled定位错误

    打开product ->scheme->Edit scheme

  6. HDU 4288 线段树+离散化

    题意: n个操作 在[1, 100000]  的区间上add 或del数( 必不会重复添加或删除不存在的数) sum 求出整个集合中 (下标%5 == 3 位置) 的数   的和 注意数据类型要64位 ...

  7. Hash表——The Hash table

    #include <stdio.h> #include <stdlib.h> #include <string.h> #include "list.h&q ...

  8. zoj 3657 策略题 easy

    http://acm.zju.edu.cn/onlinejudge/showProblem.do? problemId=4880 由于是要去牡丹江.是浙大出题,所以找了份浙大的题,第一道水题做的就不顺 ...

  9. DllImport中的EntryPoint

    工作中常常会使用到C#的应用来调用C++中的底层函数,此时就须要使用到DllImport,而DllImport中有一个EntryPoint(入口点),非常多文章都没有说明这个值怎样进行获取的,详细获取 ...

  10. css 权威指南笔记( 五)结构和层叠

    特殊性 重要性 !important; 继承 向上传播例外,应用到body元素的背景样式可以传递到html元素,相应对的可以定义其画布. 大多数框模型属性(包括外边距.内边距.背景.边框)都不能继承 ...