admin level PHP parameters (including openbase_dir global parameter) are not longer provided. See the changelog and errata file: https://github.com/i-MSCP/imsc…ation-options-admin-level
Well, now, if you want override default open_basedir path, you can use that listener: https://github.com/i-MSCP/imsc…p_confoptions_override.pl
With that listener, you can override the open_basedir parameter on a per domain basis. For instance, in the listener, you can do
- my %configOptions = ('domain1.tld' => { # Any PHP configuration added here will apply to the domain only'open_basedir' => '/var/www/apps/:{HOME_DIR}/:{PEAR_DIR}'},'domain2.tld' => { # Any PHP configuration added here will apply to the domain only'open_basedir' => '/var/www/apps/:{HOME_DIR}/:{PEAR_DIR}/'},'*' => { # Any PHP configuration option added here will apply globally.'<option_name>' => '<option_value>'});
Here, I've added the /var/www/apps path. Placeholders {HOME_DIR} and {PEAR_DIR} will be replaced as usually.
But doing this is not sufficient because you're also restricted at apache level. So, you must also allow the user to access the /var/www/apps directory in the custom vhost file which is included in the domain vhost file. For instance, you could add:
Be also aware that symlinks are followed only if owner match by default. You could have to change that too.