• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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