豚吐露@wiki

install

最終更新:

Bot(ページ名リンク)

- view
管理者のみ編集可

PHP install

PHP 5.3.25
CentOS 6.4


phpenv, php-build
phpモジュール切り替えをやってくれるツール。


大事なのは、PHPはbuild時にoptionを指定しないと使えない機能が多々有ることを覚えておく。
最初にどのoptionを有効にするか見極めて、必要なoptionを設定してやる必要がある。
PHPのdocumentに載ってるのに、いざ使ってみたら『Call to undefined method HOGE』って出るのはその典型。

現在稼働中のPHPのbuild optionはphpinfo()で確認できる。


  1. ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-libdir=lib64 --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-rpath --without-pear --with-bz2 --with-freetype-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --enable-gd-native-ttf --with-t1lib=/usr --without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-pcre-regex --with-zlib --with-layout=GNU --enable-exif --enable-ftp --enable-sockets --with-kerberos --enable-shmop --enable-calendar --with-libxml-dir=/usr --enable-xml --with-mhash --libdir=/usr/lib64/php --enable-pcntl --enable-mbstring=shared --enable-mbregex --with-gd=shared --enable-bcmath=shared --enable-dba=shared --with-db4=/usr --with-xmlrpc=shared --with-ldap=shared --with-ldap-sasl --enable-mysqlnd=shared --with-mysql=shared,mysqlnd --with-mysqli=shared,mysqlnd --enable-dom=shared --with-pgsql=shared --enable-wddx=shared --with-snmp=shared,/usr --enable-soap=shared --with-xsl=shared,/usr --enable-xmlreader=shared --enable-xmlwriter=shared --with-curl=shared,/usr --enable-pdo=shared --with-pdo-odbc=shared,unixODBC,/usr --with-pdo-mysql=shared,mysqlnd --with-pdo-pgsql=shared,/usr --with-pdo-sqlite=shared,/usr --with-pdo-dblib=shared,/usr --without-sqlite3 --enable-json=shared --enable-zip=shared --without-readline --with-libedit --with-pspell=shared --enable-phar=shared --with-mcrypt=shared,/usr --with-tidy=shared,/usr --with-mssql=shared,/usr --enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared --enable-posix=shared --with-unixODBC=shared,/usr --enable-fileinfo=shared --enable-intl=shared --with-icu-dir=/usr --with-enchant=shared,/usr --with-recode=shared,/usr
  2.  
  3. ./configure
  4. --build=x86_64-redhat-linux-gnu
  5. --host=x86_64-redhat-linux-gnu
  6. --target=x86_64-redhat-linux-gnu
  7. --program-prefix=
  8. --prefix=/usr
  9. --exec-prefix=/usr
  10. --bindir=/usr/bin
  11. --sbindir=/usr/sbin
  12. --sysconfdir=/etc
  13. --datadir=/usr/share
  14. --includedir=/usr/include
  15. --libdir=/usr/lib64
  16. --libexecdir=/usr/libexec
  17. --localstatedir=/var
  18. --sharedstatedir=/var/lib
  19. --mandir=/usr/share/man
  20. --infodir=/usr/share/info
  21. --cache-file=../config.cache
  22. --with-libdir=lib64
  23. --with-config-file-path=/etc
  24. --with-config-file-scan-dir=/etc/php.d
  25. --disable-debug
  26. --with-pic
  27. --disable-rpath
  28. --without-pear
  29. --with-bz2
  30. --with-exec-dir=/usr/bin
  31. --with-freetype-dir=/usr
  32. --with-png-dir=/usr
  33. --with-xpm-dir=/usr
  34. --enable-gd-native-ttf
  35. --without-gdbm
  36. --with-gettext
  37. --with-gmp
  38. --with-iconv
  39. --with-jpeg-dir=/usr
  40. --with-openssl
  41. --with-pcre-regex=/usr
  42. --with-zlib
  43. --with-layout=GNU
  44. --enable-exif
  45. --enable-ftp
  46. --enable-magic-quotes
  47. --enable-sockets
  48. --enable-sysvsem
  49. --enable-sysvshm
  50. --enable-sysvmsg
  51. --with-kerberos
  52. --enable-ucd-snmp-hack
  53. --enable-shmop
  54. --enable-calendar
  55. --without-sqlite
  56. --with-libxml-dir=/usr
  57. --enable-xml
  58. --with-system-tzdata
  59. --enable-force-cgi-redirect
  60. --enable-pcntl
  61. --with-imap=shared
  62. --with-imap-ssl
  63. --enable-mbstring=shared
  64. --enable-mbregex
  65. --with-gd=shared
  66. --enable-bcmath=shared
  67. --enable-dba=shared
  68. --with-db4=/usr
  69. --with-xmlrpc=shared
  70. --with-ldap=shared
  71. --with-ldap-sasl
  72. --with-mysql=shared,/usr
  73. --with-mysqli=shared,/usr/lib64/mysql/mysql_config
  74. --enable-dom=shared
  75. --with-pgsql=shared
  76. --enable-wddx=shared
  77. --with-snmp=shared,/usr
  78. --enable-soap=shared
  79. --with-xsl=shared,/usr
  80. --enable-xmlreader=shared
  81. --enable-xmlwriter=shared
  82. --with-curl=shared,/usr
  83. --enable-fastcgi
  84. --enable-pdo=shared
  85. --with-pdo-odbc=shared,unixODBC,/usr
  86. --with-pdo-mysql=shared,/usr/lib64/mysql/mysql_config
  87. --with-pdo-pgsql=shared,/usr
  88. --with-pdo-sqlite=shared,/usr
  89. --with-sqlite3=shared,/usr
  90. --enable-json=shared
  91. --enable-zip=shared
  92. --without-readline
  93. --with-libedit
  94. --with-pspell=shared
  95. --enable-phar=shared
  96. --with-tidy=shared,/usr
  97. --enable-sysvmsg=shared
  98. --enable-sysvshm=shared
  99. --enable-sysvsem=shared
  100. --enable-posix=shared
  101. --with-unixODBC=shared,/usr
  102. --enable-fileinfo=shared
  103. --enable-intl=shared
  104. --with-icu-dir=/usr
  105. --with-enchant=shared,/usr
  106. --with-recode=shared,/usr
  107.  
  108. ./configure
  109. --build=x86_64-redhat-linux-gnu
  110. --host=x86_64-redhat-linux-gnu
  111. --target=x86_64-redhat-linux-gnu
  112. --program-prefix=
  113. --prefix=/usr
  114. --exec-prefix=/usr
  115. --bindir=/usr/bin
  116. --sbindir=/usr/sbin
  117. --sysconfdir=/etc
  118. --datadir=/usr/share
  119. --includedir=/usr/include
  120. --libdir=/usr/lib64
  121. --libexecdir=/usr/libexec
  122. --localstatedir=/var
  123. --sharedstatedir=/usr/com
  124. --mandir=/usr/share/man
  125. --infodir=/usr/share/info
  126. --cache-file=../config.cache
  127. --with-libdir=lib64
  128. --with-config-file-path=/etc
  129. --with-config-file-scan-dir=/etc/php.d
  130. --disable-debug
  131. --with-pic
  132. --disable-rpath
  133. --without-pear
  134. --with-bz2
  135. --with-exec-dir=/usr/bin
  136. --with-freetype-dir=/usr
  137. --with-png-dir=/usr
  138. --with-xpm-dir=/usr
  139. --enable-gd-native-ttf
  140. --with-t1lib=/usr
  141. --without-gdbm
  142. --with-gettext
  143. --with-gmp
  144. --with-iconv
  145. --with-jpeg-dir=/usr
  146. --with-openssl
  147. --with-pcre-regex
  148. --with-zlib
  149. --with-layout=GNU
  150. --enable-exif
  151. --enable-ftp
  152. --enable-magic-quotes
  153. --enable-sockets
  154. --with-kerberos
  155. --enable-ucd-snmp-hack
  156. --enable-shmop
  157. --enable-calendar
  158. --with-libxml-dir=/usr
  159. --enable-xml
  160. --with-system-tzdata
  161. --with-mhash
  162. --enable-force-cgi-redirect
  163. --libdir=/usr/lib64/php
  164. --enable-pcntl
  165. --with-imap=shared
  166. --with-imap-ssl
  167. --enable-mbstring=shared
  168. --enable-mbregex
  169. --with-gd=shared
  170. --enable-bcmath=shared
  171. --enable-dba=shared
  172. --with-db4=/usr
  173. --with-xmlrpc=shared
  174. --with-ldap=shared
  175. --with-ldap-sasl
  176. --enable-mysqlnd=shared
  177. --with-mysql=shared,mysqlnd
  178. --with-mysqli=shared,mysqlnd
  179. --enable-dom=shared
  180. --with-pgsql=shared
  181. --enable-wddx=shared
  182. --with-snmp=shared,/usr
  183. --enable-soap=shared
  184. --with-xsl=shared,/usr
  185. --enable-xmlreader=shared
  186. --enable-xmlwriter=shared
  187. --with-curl=shared,/usr
  188. --enable-fastcgi
  189. --enable-pdo=shared
  190. --with-pdo-odbc=shared,unixODBC,/usr
  191. --with-pdo-mysql=shared,mysqlnd
  192. --with-pdo-pgsql=shared,/usr
  193. --with-pdo-sqlite=shared,/usr
  194. --with-pdo-dblib=shared,/usr
  195. --without-sqlite3
  196. --with-sqlite=shared,/usr
  197. --enable-json=shared
  198. --enable-zip=shared
  199. --without-readline
  200. --with-libedit
  201. --with-pspell=shared
  202. --enable-phar=shared
  203. --with-mcrypt=shared,/usr
  204. --with-tidy=shared,/usr
  205. --with-mssql=shared,/usr
  206. --enable-sysvmsg=shared
  207. --enable-sysvshm=shared
  208. --enable-sysvsem=shared
  209. --enable-posix=shared
  210. --with-unixODBC=shared,/usr
  211. --enable-fileinfo=shared
  212. --enable-intl=shared
  213. --with-icu-dir=/usr
  214. --with-enchant=shared,/usr
  215. --with-recode=shared,/usr
  216.  




更新日: 2013年09月11日 (水) 12時15分09秒

名前:
コメント:

すべてのコメントを見る
添付ファイル
記事メニュー
ウィキ募集バナー