• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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