• 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/

files outside the root

sjefjans

New Pleskian
I am trying to change the openbase_dir in the settings. I found out that I can use webspaceroot to set folders in the root. But what should I use to set a folder outside the httpdocs root folder? I want to place certain files containing passwords for example outside the httpdocs root.
Thanks!!
 
If I remember correctly,
{WEBSPACEROOT} is the /var/www/vhosts/domain.tld/
{DOCROOT} is /var/www/vhosts/domain.tld/httpdocs/

The default for open_basedir is {DOCROOT}:/tmp so changing that to {WEBSPACEROOT}:/tmp should do the trick.

But it sounds as though you already have? Check the created php.ini in /var/www/vhosts/domain.tld/etc (or is it conf?) to see exactly what's been added and you'll be able to tell what's happening more clearly and also phpinfo().

Does this make sense or have I got things backwards with the paths?
 
If I remember correctly,
{WEBSPACEROOT} is the /var/www/vhosts/domain.tld/
{DOCROOT} is /var/www/vhosts/domain.tld/httpdocs/

The default for open_basedir is {DOCROOT}:/tmp so changing that to {WEBSPACEROOT}:/tmp should do the trick.

But it sounds as though you already have? Check the created php.ini in /var/www/vhosts/domain.tld/etc (or is it conf?) to see exactly what's been added and you'll be able to tell what's happening more clearly and also phpinfo().

Does this make sense or have I got things backwards with the paths?

It does the trick. Thanks for directing me in the right direvtion.
 
Back
Top