Created
May 14, 2014 22:04
-
-
Save mdrmike/75c3707ee867537def03 to your computer and use it in GitHub Desktop.
php5 php_drupalpro.ini overrides for Drupal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; PHP overides for Drupal development | |
; copyright 2014 Michael Stewart and Licensed under GNU General Public License 3.0: http://www.gnu.org/licenses/gpl.txt | |
; NGINX REQUIREMENTS | |
cgi.fix_pathinfo=0 | |
; DRUPAL REQUIREMENTS | |
; BASED ON https://drupal.org/requirements/php | |
error_reporting = E_ALL & ~E_NOTICE | |
safe_mode: Off | |
; Loosen settings for development | |
upload_max_filesize = 100M | |
post_max_size = 101M | |
memory_limit = 128M | |
; Enable and log errors, but hide from browser | |
display_errors = Off | |
log_errors = On | |
; Drupal Recommendations for PHP configuration settings | |
; see: https://drupal.org/requirements/php | |
session.cache_limiter = nocache | |
session.auto_start = 0 | |
magic_quotes_gpc = off | |
register_globals = off | |
;; Drupal Recommendations for production environment | |
; | |
;expose_php = off | |
;; Reason: Shows current PHP version in all header requests, security disclosure, see http://phpsec.org/projects/phpsecinfo/tests/expose_php.html | |
;; Example: X-Powered-By: PHP/5.3.8 | |
; | |
;allow_url_fopen = off | |
;; Reason: This is a security issue: see http://phpsec.org/projects/phpsecinfo/tests/allow_url_fopen.html | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment