• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

How do I add a path to the open_basedir in Plesk for all domains?

BigBlock

New Pleskian
As the title says, how do I add a path to the open_basedir in Plesk for all domains?

I have to change the open_basedir value for all domains from:

Code:
{DOCROOT}/:/tmp/

to:

Code:
{DOCROOT}/:/tmp/:/var/www/vhosts/{DOMAIN?}/

I know where to do it, I just don't know what the variable is for the parent of {DOCROOT}, I did find & try {webspaceroot}/:/tmp/ but it does not work [even after 'reconfiguring the domain and restart/reload apache]
 
Hi BigBlock,

Sorry, this is not possible on Plesk 10.x

In order to do this, you should upgrade to Plesk 11.09. There is a new variable for PHP open_basedir there: {WEBSPACEROOT}
 
Back
Top