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

php.ini — first linesINI
; 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 = 0

File details

Size
467 B (467 bytes)
MIME type
text/plain
SHA-256
a18ee6fec67cbfab34fa9364310e92919504a7bf0adb8a9bff71fcc08547479b
MD5
afa6a402be4f7ab4ba0ebc8d1404b71d

Download from the command line

curl -L -o php.ini https://files.samplefiles.com/config/php-ini/php.ini

Or check the download in your browser with the checksum calculator.