28.18. Use php.ini-recommended

The PHP distribution includes a file named php.ini-recommended alongside the standard php.ini-dist file. Unlike php.ini-dist, which comes preconfigured for PHP's default settings, php.ini-recommended has a list of nonstandard settings, which improve PHP's security and performance. Each nonstandard setting is thoroughly documented in the body of php.ini-recommended, which describes the consequences of enabling it as well as the category of improvement to which this setting is related, such as performance or security. When installing PHP for the first time, or when you want to tune your PHP server for performance, try to use php.ini-recommended.

Get Core PHP Programming, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.