Config Files · 1 file
Sample php.ini File
php.ini configures the PHP runtime. Our sample is realistic and valid for its tool, with fake hosts and secrets.
php.ini · 467 B
php.ini
A production-style php.ini excerpt: error handling, upload and post limits, memory, sessions and OPcache. All hosts, keys and secrets are fake.
CC0 · free for any use · Verified by an independent tool · Report a problem
; Sample php.ini (excerpt) — samplefiles.com
[PHP]
display_errors = Off
log_errors = On
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
memory_limit = 256M
max_execution_time = 30
upload_max_filesize = 64M
post_max_size = 64M
expose_php = Off
[Date]
date.timezone = UTC
[Session]
session.cookie_secure = 1
session.cookie_httponly = 1
session.cookie_samesite = Lax
[opcache]
opcache.enable = 1
opcache.memory_consumption = 128
opcache.validate_timestamps = 0File details
Download from the command line
curl -L -o php.ini https://files.samplefiles.com/config/php-ini/php.iniwget https://files.samplefiles.com/config/php-ini/php.inihttps://files.samplefiles.com/config/php-ini/php.iniprintf '%s %s\n' a18ee6fec67cbfab34fa9364310e92919504a7bf0adb8a9bff71fcc08547479b php.ini | shasum -a 256 -cOr check the download in your browser with the checksum calculator.