• Resolved Launchpad135

    (@launchpad135)


    Hi there,

    Been using UPdraftPlus successfully for a long time. However recently during the backup process, a PHP event E-Warning keeps coming up. The backup gets completed successfully message shows up.

    Here is the message which is shown:

    PHP event: code E_WARNING: is_dir(): open_basedir restriction in effect. File(/usr/local/cpanel) is not within the allowed path(s): (/usr/www/wwws/users/bleackynmh:/usr/wwws/users/bleackynmh:/usr/www/users/bleackynmh:/usr/home/bleackynmh:/usr/local/rmagic:/usr/share/php:/usr/local/lib/php:/tmp:/usr/bin:/usr/local/bin:/usr/local/share/www:/usr/www/share/www:/usr/share/misc:/dev/urandom:/var/www/php_profiler/xhgui) (line 408, wp-content/plugins/updraftplus/class-updraftplus.php) (Jan 19 15:00:26)

    As this is an e-comm website I’m extremely concerned about the integrity of the website backup as well as the fact that the Hosting company does not use cPanel at all.

    Please advise – is it safe to ignore this warning? Is the integrity of the backup 100%?

    Here is the latest UpdraftPlus log file – https://pastebin.com/HVxkK7JL

    Appreciate your help,

    Kind regards,

    Greg

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support vupdraft

    (@vupdraft)

    Hi,

    Could you try deactivating the open_basedir. Edit the php.ini file, or .user.ini that is located within the main directory of your site and add this line:
    open_basedir = none
    If the php.ini file doesn’t exist, please feel free to create it.

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Hi,

    You can ignore the PHP event message in the log; it simply reflects the fact that, as you say, you’re not using cPanel. The log line occurs because an attempt to local cPanel fails – that is all and you don’t need to be worried about that.

    David

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    “attempt to locate cPanel”

    Thread Starter Launchpad135

    (@launchpad135)

    @vupdraft thanks for your suggestion. Unfortunately, the hosting provider doesn’t allow the deactivation of open_basedir.

    Kind regards,

    Greg

    Thread Starter Launchpad135

    (@launchpad135)

    Thanks for clearing this up @davidanderson. There is a lot of misunderstanding about how to “solve” this issue.

    A tech support from the hosting company gave this advice:

    “As you can see it is looking for the file in/usr/local/cpanel, which is not in our environment. I would advise running a plugin that would search and replace any paths and URLs that might be incorrectly referenced, and then you could see if the open_basedir is triggered again. “

    “Should you still be getting this error, a website developer would need to go through the code and update any code that is referencing Cpanel to the correct paths. “

    Thanks again,
    Kind regards,
    Greg

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP event: E-Warning during backup process’ is closed to new replies.