Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
php_configuration [2015/06/01 17:14] steve removed |
php_configuration [2015/10/19 09:15] steve |
||
---|---|---|---|
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> | ||
- | date.timezone = America/Denver | ||
- | default_charset = utf-8 | ||
- | 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> | ||
- | |||
- | ** 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 |