mirror of
https://github.com/moonshadowrev/PersonalAccounter.git
synced 2026-04-28 11:10:20 -05:00
83 lines
1.8 KiB
INI
83 lines
1.8 KiB
INI
[PHP]
|
|
; Maximum execution time of each script, in seconds
|
|
max_execution_time = 300
|
|
|
|
; Maximum amount of time each script may spend parsing request data
|
|
max_input_time = 300
|
|
|
|
; Maximum amount of memory a script may consume
|
|
memory_limit = 256M
|
|
|
|
; Enable output buffering
|
|
output_buffering = 4096
|
|
|
|
; Maximum size of POST data that PHP will accept
|
|
post_max_size = 64M
|
|
|
|
; Maximum allowed size for uploaded files
|
|
upload_max_filesize = 64M
|
|
|
|
; Maximum number of files that can be uploaded via a single request
|
|
max_file_uploads = 20
|
|
|
|
; Session settings
|
|
session.gc_maxlifetime = 1440
|
|
session.gc_probability = 1
|
|
session.gc_divisor = 100
|
|
session.save_path = "/var/www/html/sessions"
|
|
|
|
; Error reporting
|
|
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
|
|
display_errors = Off
|
|
log_errors = On
|
|
error_log = /var/www/html/logs/php_errors.log
|
|
|
|
; Timezone
|
|
date.timezone = UTC
|
|
|
|
; OPcache settings
|
|
opcache.enable = 1
|
|
opcache.enable_cli = 1
|
|
opcache.memory_consumption = 128
|
|
opcache.interned_strings_buffer = 8
|
|
opcache.max_accelerated_files = 4000
|
|
opcache.revalidate_freq = 2
|
|
opcache.fast_shutdown = 1
|
|
opcache.save_comments = 1
|
|
|
|
; Security settings
|
|
expose_php = Off
|
|
allow_url_fopen = Off
|
|
allow_url_include = Off
|
|
enable_dl = Off
|
|
|
|
; File uploads
|
|
file_uploads = On
|
|
upload_tmp_dir = /tmp
|
|
|
|
; MySQL settings
|
|
mysql.allow_persistent = On
|
|
mysql.cache_size = 2000
|
|
mysql.max_persistent = -1
|
|
mysql.max_links = -1
|
|
mysql.connect_timeout = 60
|
|
mysql.trace_mode = Off
|
|
|
|
; MySQLi settings
|
|
mysqli.max_persistent = -1
|
|
mysqli.allow_persistent = On
|
|
mysqli.max_links = -1
|
|
mysqli.cache_size = 2000
|
|
mysqli.default_port = 3306
|
|
mysqli.default_socket =
|
|
mysqli.default_host =
|
|
mysqli.default_user =
|
|
mysqli.default_pw =
|
|
mysqli.reconnect = Off
|
|
|
|
; PDO MySQL settings
|
|
pdo_mysql.cache_size = 2000
|
|
pdo_mysql.default_socket =
|
|
|
|
; Environment-specific settings
|
|
; These will be overridden by environment variables if needed |