Skip to content

Instantly share code, notes, and snippets.

@nd3w
Created April 27, 2019 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nd3w/2801e946768dcae4926266c721256afe to your computer and use it in GitHub Desktop.
Save nd3w/2801e946768dcae4926266c721256afe to your computer and use it in GitHub Desktop.
PHP configuration for development machine
; For dev only
expose_php=Off
log_errors=On
error_log=/var/log/httpd/php_scripts_error.log
file_uploads=On
;open_basedir="/var/www/html/"
error_reporting = E_ALL
; Should be 'off' on prod server
allow_url_fopen=On
allow_url_include=On
display_errors = On
display_startup_errors = On
ignore_repeated_errors = Off
report_memleaks = On
track_errors = Off
html_errors = On
; Should be change appropriately
upload_max_filesize=300M
max_file_uploads=6
post_max_size=304M
max_execution_time = 60
max_input_time = 60
memory_limit = 64M
; Session
session.name = myPHPSESSID
session.auto_start = Off
session.use_trans_sid = 0
session.use_strict_mode = 1
session.use_cookies = 1
session.use_only_cookies = 1
session.cookie_lifetime = 7200000
;session.cookie_secure = 1
session.cookie_httponly = 1
session.cookie_samesite = Strict
session.cache_expire = 30000
session.sid_length = 64
; PHP 7.2+
session.sid_bits_per_character = 6
; PHP 7.0-7.1
session.hash_function = "sha256"
; PHP 7.0-7.1
session.hash_bits_per_character = 6
session.gc_maxlifetime = 1440000
; Mailcatcher
sendmail_path = /usr/bin/env catchmail -f me@example.com
; Timezone
;date.timezone = ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment