• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

subscription.exe can't set multiple open_basedir paths

JulianP

Basic Pleskian
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...
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:
I think in latest plesk you get php settings tab in domain go to domain >> website and domains >> domain name>> php setting there you can edit the php settings
 
Almost anything you can do through the Plesk web GUI can be done via the commandline. This is useful if you have to make the same change to a lot of domains.
 
Back
Top