Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
php_configuration [2015/06/01 17:14]
steve removed
php_configuration [2015/10/19 09:15]
steve created
Line 1: Line 1:
-====== PHP Configuration ​======+====== PHP Configuration =====
  
-  * [[Developer Support]] 
-  * [[Development Environment]] 
   * [[PHP]]   * [[PHP]]
-  * [[PHP Configuration Changelog]] 
-  * [[PHP PEAR Configuration]] 
-  * [[http://​beandog.digitaltrike.com/​php/​|Downloads]] 
  
-==== Developers ==== +You can get the configuration options for how PHP was built on the command line using ''​php-config''​. It displays other helpful items as well.
- +
-** PHP 5.3 **+
  
 <​code>​ <​code>​
-date.timezone = America/​Denver +php-config ​--configure-options
-default_charset = utf-8 +
-error_reporting = E_ALL & ~E_DEPRECATED +
-zend_extension="/​usr/​local/​php53/​lib/​php/​extensions/​no-debug-non-zts-20090626/​xdebug.so"​ +
-open_basedir = /​Users:/​usr/​local/​dtrike/​php53:/​private/​tmp:/​private/​var/​tmp:/​tmp:/​var/​tmp+
 </​code>​ </​code>​
- 
-** PHP 5.4 ** 
  
 <​code>​ <​code>​
-date.timezone ​America/Denver +--prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/​usr/​share/​info --datadir=/​usr/​share --sysconfdir=/​etc --localstatedir=/​var/lib --prefix=/usr/lib64/php5.6 ​--mandir=/​usr/​lib64/​php5.6/​man ​--infodir=/usr/​lib64/​php5.6/info --libdir=/usr/​lib64/​php5.6/​lib --with-libdir=lib64 --without-pear --disable-maintainer-zts --enable-bcmath --with-bz2=/usr --disable-calendar --enable-ctype --with-curl=/usr --enable-dom --without-enchant --disable-exif --enable-fileinfo --enable-filter --disable-ftp --with-gettext=/usr --without-gmp --enable-hash --without-mhash --with-iconv --enable-intl --enable-ipv6 --enable-json --without-kerberos --enable-libxml --with-libxml-dir=/usr --enable-mbstring --with-mcrypt=/usr --without-mssql --with-onig=/usr --with-openssl=/usr --with-openssl-dir=/usr --enable-pcntl --enable-phar --enable-pdo --enable-opcache --without-pgsql --enable-posix --without-pspell --without-recode --enable-simplexml --disable-shmop --without-snmp --disable-soap --disable-sockets --without-sqlite3 --without-sybase-ct --disable-sysvmsg --disable-sysvsem --disable-sysvshm --without-fpm-systemd --without-tidy --enable-tokenizer --disable-wddx --enable-xml --disable-xmlreader --disable-xmlwriter --without-xmlrpc --without-xsl --disable-zip --with-zlib=/usr --disable-debug --enable-dba --without-cdb --with-db4=/usr --disable-flatfile --with-gdbm=/​usr --disable-inifile --without-qdbm --without-freetype-dir --without-t1lib --disable-gd-jis-conv --without-jpeg-dir --without-png-dir --without-xpm-dir --without-vpx-dir --without-gd --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-mysql-sock=/var/run/​mysqld/​mysqld.sock --without-pdo-dblib --with-pdo-mysql=mysqlnd --without-pdo-pgsql --without-pdo-sqlite --without-pdo-odbc --with-readline=/​usr --without-libedit --without-mm --with-pic --with-pcre-regex=/​usr --with-pcre-dir=/​usr --with-config-file-path=/​etc/​php/​cli-php5.6 --with-config-file-scan-dir=/​etc/​php/​cli-php5.6/​ext-active --disable-embed --enable-cli --disable-cgi --disable-fpm --without-apxs2 build_alias=x86_64-pc-linux-gnu host_alias=x86_64-pc-linux-gnu CFLAGS=-march=native -O2 -pipe -mno-avx LDFLAGS=-Wl,​-O1 -Wl,​--as-needed CPPFLAGS= CXXFLAGS=-march=native -O2 -pipe -mno-avx
-default_charset ​utf-+
-error_reporting ​E_ALL +
-zend_extension="/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so" +
-open_basedir ​= /Users:/usr/local/dtrike/php54:/private/tmp:/private/var/tmp:/tmp:/var/tmp+
 </​code>​ </​code>​
- 
-** PHP 5.5 ** 
- 
-<​code>​ 
-date.timezone = America/​Denver 
-default_charset = "​UTF-8"​ 
-zend_extension="/​usr/​local/​php55/​lib/​php/​extensions/​no-debug-non-zts-20090626/​xdebug.so"​ 
-open_basedir = /​Users:/​usr/​local/​dtrike/​php55:/​private/​tmp:/​private/​var/​tmp:/​tmp:/​var/​tmp 
-</​code>​ 
- 
-** PHP 5.6 ** 
- 
-  * UTF-8 charset is default 
- 
-<​code>​ 
-date.timezone = America/​Denver 
-zend_extension="/​usr/​local/​php56/​lib/​php/​extensions/​no-debug-non-zts-20090626/​xdebug.so"​ 
-open_basedir = /​Users:/​usr/​local/​dtrike/​php56:/​private/​tmp:/​private/​var/​tmp:/​tmp:/​var/​tmp 
-</​code>​ 
-==== Production (tahiti) ===== 
- 
-== PHP 5.4 == 
- 
-  * CGI binary: ''/​var/​www/​cgi-bin/​php54-cgi''​ 
-  * Configuration:​ ''/​etc/​php5/​cgi/​php.ini''​ 
-  * Error Log: ''/​var/​log/​php/​error_log''​ 
- 
-<​code>​ 
-short_open_tag = On 
-zlib.output_compression = On 
-open_basedir = "/​home/​dmedia/​public_html:/​var/​www:/​usr/​share/​php:/​usr/​share/​php5:/​tmp:/​var/​lib/​collectd/​rrd:/​usr/​bin/​rrdtool:/​home/​steve/​public_html:/​home/​dmedia/​ftp-users:/​var/​log/​php"​ 
-error_reporting = E_ALL & ~E_DEPRECATED 
-error_log = /​var/​log/​php/​error.log 
-post_max_size = 64M 
-default_charset = utf-8 
-include_path = "​.:/​usr/​share/​php5:/​usr/​share/​php 
-upload_max_filesize = 64M 
-date.timezone = America/​Denver 
-browscap = /​var/​www/​localhost/​browscap.ini 
-; SLT 
-max_input_time = 300 
-max_input_vars = 2500 
-</​code>​ 
- 
-== PHP 5.3 == 
- 
-  * CGI binary: ''/​var/​www/​cgi-bin/​php53-cgi''​ 
-  * Configuration:​ ''/​usr/​local/​php53/​lib/​php.ini''​ 
-  * Error Log: ''/​var/​log/​php/​php53/​error_log''​ 
-==== Local Overrides ==== 
- 
-Sample ''​.user.ini'':​ 
- 
-<​code>​ 
-date.timezone = America/​Denver 
-default_charset = utf-8 
-error_log = "/​home/​client/​logs/​php_error.log"​ 
-log_errors = On 
-html_errors = Off 
-display_errors = Off 
-error_reporting = E_ALL & ~E_DEPRECATED 
-</​code>​ 
- 
-==== Gotchas ==== 
- 
-  * PHP's default setting for include_path is "​.;/​path/​to/​php/​pear"​ 
-  * Apache'​s setting for ''​FcgidMaxRequestLen''​ needs to be the same amount as PHP's upload and post limits