Title: PHP event: E-Warning during backup process
Last modified: January 19, 2023

---

# PHP event: E-Warning during backup process

 *  Resolved [Launchpad135](https://wordpress.org/support/users/launchpad135/)
 * (@launchpad135)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-event-e-warning-during-backup-process/)
 * 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](https://pastebin.com/HVxkK7JL)
 * Appreciate your help,
 * Kind regards,
 * Greg

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

 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-event-e-warning-during-backup-process/#post-16392843)
 * 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 = noneIf the php.ini file doesn’t exist, please feel free to create
   it.
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-event-e-warning-during-backup-process/#post-16393893)
 * 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](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-event-e-warning-during-backup-process/#post-16395760)
 * “attempt to locate cPanel”
 *  Thread Starter [Launchpad135](https://wordpress.org/support/users/launchpad135/)
 * (@launchpad135)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-event-e-warning-during-backup-process/#post-16402510)
 * [@vupdraft](https://wordpress.org/support/users/vupdraft/) thanks for your suggestion.
   Unfortunately, the hosting provider doesn’t allow the deactivation of open_basedir.
 * Kind regards,
 * Greg
 *  Thread Starter [Launchpad135](https://wordpress.org/support/users/launchpad135/)
 * (@launchpad135)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-event-e-warning-during-backup-process/#post-16402591)
 * Thanks for clearing this up [@davidanderson](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/updraftplus/assets/icon-256x256.jpg?rev=1686200)
 * [UpdraftPlus: WP Backup & Migration Plugin](https://wordpress.org/plugins/updraftplus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/updraftplus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/updraftplus/)
 * [Active Topics](https://wordpress.org/support/plugin/updraftplus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/updraftplus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/updraftplus/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Launchpad135](https://wordpress.org/support/users/launchpad135/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/php-event-e-warning-during-backup-process/#post-16402591)
 * Status: resolved