• Resolved GreenPanda

    (@binarybrew)


    Hey guys, Im getting a lot of PHP errors

    “is_executable(): open_basedir restriction in effect. File(/usr/bin/zip) is not within the allowed path(s).

    I can also see in the log that the path is wrong:
    0000.891 (0) PHP event: code E_WARNING: is_dir(): open_basedir restriction in effect. File(/usr/local/cpanel) is not within the allowed path(s): (line 376, wp-content/plugins/updraftplus/class-updraftplus.php)

    I’ve fixed the wrong path in my htaccess, and I’ve run search and replace. Where does the plugin get that wrong path from? So that I can edit it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    Can you please tell me how and when the error appears? Are you trying to just create a backup or connect it to your remote storage?

    Thanks,
    Bryle

    Plugin Author David Anderson

    (@davidanderson)

    Your PHP setup is configured to not allow the program /usr/bin/zip to be run. So when it is attempted, PHP logs a message. That’s not a problem in itself. Note that the level logged is ‘warning’, not ‘error’. If it bothers you to see it in your PHP log file, you can add this to your wp-config.php:

    define('UPDRAFTPLUS_ZIP_EXECUTABLE', '');

    Thread Starter GreenPanda

    (@binarybrew)

    The errors show up at the admin bar query monitor. I can see that the plugin is calling for the wrong path in the log too.

    • This reply was modified 3 years ago by GreenPanda.
    Plugin Contributor DNutbourne

    (@dnutbourne)

    Hi,

    Does the error still appear if you add the line suggested by my colleague above?

    If you know the full path to the zip binary, you can also use the above line to set the path to that file (by entering the full path after the comma.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP error: File(/usr/bin/zip) is not within the allowed path(s):’ is closed to new replies.