Warning: This page has not been updated in over over a year and may be outdated or deprecated.
administration:php_settings
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Next revision | |||
— | administration:php_settings [2018/02/08 14:46] – created emaijala | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== PHP Settings ====== | ||
+ | |||
+ | There are several PHP settings that may affect VuFind in different ways. This page lists settings that may be useful. Many of the settings can be set in httpd-vufind.conf (not all, though), but if the server doesn' | ||
+ | |||
+ | * memory_limit - This is one of the most relevant settings. If you use e.g. VuFind' | ||
+ | * session.use_strict_mode - Turn it on. [[http:// | ||
+ | * session.gc_divisor - On a busy site the default value of 1000 may result in session garbage collection to be run quite frequently. Increasing it to e.g. 10000 reduces this. | ||
+ | * expose_php - VuFind runs on PHP, but there' | ||
+ | * max_input_vars - Default is 1000, and while it's enough for most situations, it may need to be increased e.g. for "Renew All" to work if users have more than a 1000 loans. | ||
+ | * pcre.jit - If you encounter mysterious failures when running under PHP 7, turning this off may help. See https:// | ||
+ | * error_log - Location of PHP error log. Setting this to a file path makes PHP write all notices, warnings and errors to the file instead of Apache log. | ||
+ | * display_errors - Whether to display warnings and errors in browser. While VuFind has a nice error handler in development mode, it ignores e.g. PHP notices. Combined with error_reporting=E_ALL makes PHP display them on screen, which can be useful in detecting possible problems even without checking the error log. It is not recommended to use these in production, though! | ||
+ | * opcache.enable - OPcache improves PHP performance with PHP 7.x versions, but turning it off when doing development or setup work may be useful since otherwise old .php files may be used from the memory cache. | ||
+ | |||
+ | |||
+ | |||
+ | ---- struct data ---- | ||
+ | ---- | ||
administration/php_settings.txt · Last modified: 2023/03/28 23:40 by demiankatz