• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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