Template:PHP/open basedir

From wiki

Description

Edit the PHP setting open_basedir

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Folderfolders

Column separated list of folders

Example
/var/lib/roundcube/:/usr/share/roundcube/
Stringrequired
Reload phpreload

no description

Default
1
Booleansuggested

Example

{{PHP/open_basedir|folders=/var/lib/roundcube/:/usr/share/roundcube/}}

Edit file /etc/php/7.0/mods-available/local-common.ini and add /var/lib/roundcube/:/usr/share/roundcube/ to the open_basedir setting.

Reload PHP:

$ sudo systemctl reload php7.0-fpm.service