macandcheese
New Pleskian
- Server operating system version
- AlmaLinux release 8.8 (Sapphire Caracal)
- Plesk version and microupdate number
- Plesk Obsidian 18.0.52.3
Dear Plesk community,
TLDR: How can we update PHP's default open_basedir for multiple domains at once?
For all domains on our 10+ Plesk servers, we're trying to configure PHP's
However, most of the domains also have PHP's
To make
Every domain uses the default setting:

...and ideally what I'd do is change that default in a single location to update all domains at once. This however seems impossible, because:
Some additional details:
- Most servers use LiteSpeed
- Servers use a mix of fastcgi and php-fpm
TLDR: How can we update PHP's default open_basedir for multiple domains at once?
For all domains on our 10+ Plesk servers, we're trying to configure PHP's
auto_prepend_file
to intercept fatal errors and send them to cloud logging.However, most of the domains also have PHP's
open_basedir
setting enabled for security.To make
auto_prepend_file
work, open_basedir
needs to be changed to {WEBSPACEROOT}{/}{:}{TMP}{/}{:}/path/to/prependedstuff/
.Every domain uses the default setting:

...and ideally what I'd do is change that default in a single location to update all domains at once. This however seems impossible, because:
- PHP Settings > php.ini can't be used here, because every domain has a different
{WEBSPACEROOT}
. - Service Plan > PHP Settings > Update & Sync has no effect; existing domains'
open_basedir
doesn't get updated. - Restricted Mode Settings > PHP Settings similarly has no effect on existing domains.
psa
database maybe? Thanks in advance.Some additional details:
- Most servers use LiteSpeed
- Servers use a mix of fastcgi and php-fpm