• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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