3
Kaji
5y

Quick Plesk config question...

Been getting open_basedir() notices in the WordPress logs, and frankly it's flooding the log right now. Sample below:

[24-Feb-2019 07:05:19 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/vhosts/webspacedomain.com/SiteInstallDirectory/wp-content/db.php) is not within the allowed path(s): (/var/www/vhosts/webspacedomain.com/:/tmp/) in /var/www/vhosts/webspacedomain.com/SiteInstallDirectory/wp-includes/load.php on line 397

Checking the settings for open_basedir in the domain's PHP settings, it's currently set to the following default value:

{WEBSPACEROOT}{/}{:}{TMP}{/}

By my read, that **should** be granting permission to the directory. I just checked it against the setting on the dev server (which doesn't report this error), and it's configured in the same manner. Only difference between Dev environment and this one is that the one in Dev is in vhosts/webspacedomain.net/DEV instead of just vhosts/webspacedomain.net

Is there something I'm missing here?

Comments
  • 0
    ... have you considered asking that on StackOverflow....

    😑
  • 0
    @beggarboy You ever asked anything on SO before?

    On a more serious note, I'll move it there if there's nothing here, but I'd rather not put up with the people over there if I don't have to...
  • 2
    @Kaji And theres good reason. Stack Overflow hates stupid unresearched questions. It's their quality standard and I stand behind it.

    So if you have googled about your problem and already searched for similar questions, you have 0 issues to post it there.

    Just because you don't feel comfortable posting it there, does not mean you can offload it here.

    Sorry, but this just pisses me off. It's not what devrant is here for.
  • 1
    I don’t want to be an asshole right now, but this literally showed up as the first google result for “Open basedir restriction” and I don’t use plesk so no google bias here.

    https://support.plesk.com/hc/en-us/...

    I get errors can be elusive, but a copy/paste search will return results to some extent.
Add Comment