mod_fcgid: stderr: PHP Warning

Hi there,

I keep getting this warning in my logs, can anyone advise please>

mod_fcgid: stderr: PHP Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/mydomain.com/:disappointed:tmp/) in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/wpmu-dev-seo/wds-files/wds-sitemaps/wds-sitemaps.php on line 453

  • Vaughan

    Hi Janos,

    Hope you're well?

    What this is actually saying in understandable language is:

    /var/www/vhosts/mydomain.com/tmp/

    is not allowed to be accessed by your script ddue to a security setting on your server. Our plugin is unable to write it's tmp files to that location.

    You could either contact your webhost and ask them if they could add that tmp path to the allowed list, or we could try changing the /tmp folder path.

    Adding the following to your wp-config.php

    define('WP_TEMP_DIR','/var/www/vhosts/mydomain.com/httpdocs/temp');

    then create a folder called /temp in your httpdocs folder.

    Hopefully that should fix your issue.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.