Title: PHP Warning: is_executable(): open_basedir restriction in effect
Last modified: March 4, 2024

---

# PHP Warning: is_executable(): open_basedir restriction in effect

 *  [DreamOn11](https://wordpress.org/support/users/dreamon11/)
 * (@dreamon11)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-warning-is_executable-open_basedir-restriction-in-effect/)
 * Hello,
 * There are PHP warnings when visiting /wp/wp-admin/options-general.php?page=updraftplus
   page:
 *     ```wp-block-code
       PHP Warning:
       is_executable(): open_basedir restriction in effect. File(/opt/bin/zip) is not within the allowed path(s): (/var/www/html:/tmp) in /var/www/html/web/app/plugins/updraftplus/class-updraftplus.php on line 1811
   
       Request:
       GET /wp/wp-admin/options-general.php?page=updraftplus
   
       Backtrace:
       #(0): X\{closure}()
       #1 /var/www/html/web/app/plugins/updraftplus/class-updraftplus.php(1811): is_executable()
       #2 /var/www/html/web/app/plugins/updraftplus/admin.php(350): find_working_bin_zip()
       #3 /var/www/html/web/app/plugins/updraftplus/admin.php(629): setup_all_admin_notices_udonly()
       #4 /var/www/html/web/app/plugins/updraftplus/admin.php(38): admin_init()
       #5 /var/www/html/web/app/plugins/updraftplus/admin.php(8): __construct()
       #6 /var/www/html/web/app/plugins/updraftplus/updraftplus.php(103): include_once('/var/www/html/web/app/plugins/updraftplus/admin.php')
       #7 /var/www/html/web/app/plugins/updraftplus/class-updraftplus.php(486): updraft_try_include_file()
       #8 /var/www/html/web/wp/wp-includes/class-wp-hook.php(324): admin_menu()
       #9 /var/www/html/web/wp/wp-includes/class-wp-hook.php(348): apply_filters()
       #10 /var/www/html/web/wp/wp-includes/plugin.php(517): do_action()
       #11 /var/www/html/web/wp/wp-admin/includes/menu.php(161): do_action()
       #12 /var/www/html/web/wp/wp-admin/menu.php(417): require_once('/var/www/html/web/wp/wp-admin/includes/menu.php')
       #13 /var/www/html/web/wp/wp-admin/admin.php(158): require('/var/www/html/web/wp/wp-admin/menu.php')
       #14 /var/www/html/web/wp/wp-admin/options-general.php(10): require_once('/var/www/html/web/wp/wp-admin/admin.php')
       ```
   

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

 *  [pbevanudp](https://wordpress.org/support/users/pbevanudp/)
 * (@pbevanudp)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-warning-is_executable-open_basedir-restriction-in-effect/#post-17473365)
 * Hello,
 * This is typically a restriction imposed by your hosting company or server admin
   and shouldn’t cause any problems as UpdraftPlus will use an alternative zip utility.
   Do you have debugging mode switched on?
 *  Thread Starter [DreamOn11](https://wordpress.org/support/users/dreamon11/)
 * (@dreamon11)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-warning-is_executable-open_basedir-restriction-in-effect/#post-17474878)
 * Thanks for your reply.
 * These warnings are not problematic, but as I have configured my site to receive
   PHP warnings and errors by e-mail, it is quite annoying.
 * Maybe you can use [PHP error control operator](https://www.php.net/manual/en/language.operators.errorcontrol.php)(
   @) to disable these warnings?
 * There are a lot:
 *     ```wp-block-code
       is_dir(): open_basedir restriction in effect. File(/usr/local/cpanel) is not within the allowed path(s): (/var/www/html:/tmp) in /var/www/html/web/app/plugins/updraftplus/class-updraftplus.php on line 419
       ```
   
 *     ```wp-block-code
       is_executable(): open_basedir restriction in effect. File(/opt/bin/zip) is not within the allowed path(s): (/var/www/html:/tmp) in /var/www/html/web/app/plugins/updraftplus/class-updraftplus.php on line 1811
       ```
   
 *     ```wp-block-code
       is_executable(): open_basedir restriction in effect. File(/usr/xdg4/bin/zip) is not within the allowed path(s): (/var/www/html:/tmp) in /var/www/html/web/app/plugins/updraftplus/class-updraftplus.php on line 1811
       ```
   
 * And so on.

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

The topic ‘PHP Warning: is_executable(): open_basedir restriction in effect’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [DreamOn11](https://wordpress.org/support/users/dreamon11/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/php-warning-is_executable-open_basedir-restriction-in-effect/#post-17474878)
 * Status: not a support question