Skip to content

Configuring a PHP INI directive

Boy Baukema edited this page Mar 31, 2014 · 1 revision

Note that when configuring PHP as used by EngineBlock you can set INI directives in 3 ways:

1. RECOMMENDED: In EngineBlock configuration

You can set any PHP_INI_USER or PHP_INI_ALL setting in the EngineBlock configuration under the 'phpSettings' configuration namespace.

Example:

phpSettings.date.timezone = "Europe/Amsterdam"

See "Changeable" in the list of available INI settings.

Setting these settings in your engineblock.ini has the advantage of making your application more portable and less dependant on (global for all applications) system configuration.

2. In Apache Virtual Host or .htaccess

If you are running PHP as an Apache module you can use the special Apache directives. Find out more at php.net.

3. In configuration file

Generally found in /etc/php.ini the system global configuration for PHP allows you to set any available INI setting. Do note that this is global for all hosted applications and that you will need the appropriate (root) rights.