The command-line utility subscription.exe can be used to set per-site php.ini settings, including open_basedir.
See http://download1.parallels.com/Ples...ne/plesk-win-cli/index.htm?fileName=25738.htm
A typical use would be to enable access to multiple folders e.g. both httpdocs and private folders. However, when multiple folders are provided, only the first is set and subsequent folders are ignored.
e.g. PhpSettings.ini contains open_basedir with 2 paths...
The following command is run...
Checking the domain's php settings in Plesk Panel, the open_basedir setting has only the first path C:\Inetpub\vhosts\domain.co.uk\httpdocs
Is there a work-around e.g. encoding the semi-colon?
Is this a feature or a bug? Either way, please can it be documented so avoid wasting the valuable time of Plesk administrators?
Thanks,
Julian
See http://download1.parallels.com/Ples...ne/plesk-win-cli/index.htm?fileName=25738.htm
A typical use would be to enable access to multiple folders e.g. both httpdocs and private folders. However, when multiple folders are provided, only the first is set and subsequent folders are ignored.
e.g. PhpSettings.ini contains open_basedir with 2 paths...
Code:
[PHP]
open_basedir = C:\Inetpub\vhosts\domain.co.uk\httpdocs;C:\Inetpub\vhosts\domain.co.uk\private
The following command is run...
Code:
"%plesk_bin%\subscription.exe" --update-php-settings domain.co.uk -settings PhpSettings.ini
Checking the domain's php settings in Plesk Panel, the open_basedir setting has only the first path C:\Inetpub\vhosts\domain.co.uk\httpdocs
Is there a work-around e.g. encoding the semi-colon?
Is this a feature or a bug? Either way, please can it be documented so avoid wasting the valuable time of Plesk administrators?
Thanks,
Julian
Last edited: