• Resolved mscott

    (@mscott)


    This plugin won’t work if open_basedir is defined. Even if open_basedir is defined correctly for the account.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey @mscott,

    There are some details about that setting here:

    ? ? – What is PHP Open Base Dir or “open_basedir restriction in effect”?
    ? ? – https://snapcreek.com/duplicator/docs/faqs-tech/#faq-trouble-065-q

    If that still doesn’t work you might contact your host and see if they have any other settings setup that prevents PHP from working normally. We have seen on several other hosts that setting enabled and the plugin still works without issues.

    Thxs

    Thread Starter mscott

    (@mscott)

    What other settings would there be that would prevent PHP from working normally?

    Its tough to tell some hosts can use other tools like suhosin or built there own custom security filters around open_base dir. The only way to know would be to ask. The plugin works well on hundreds of hosts, so there seems to be something specific on this host that is blocking the plugin from working.

    Hope that helps~

    Thread Starter mscott

    (@mscott)

    Why does open_basedir conflict with this plugin? What is it trying to do that requires lax security?

    No other scripts or plugins require this much scrutiny with open_basedir.

    Hi @mscott,

    You will need to contact your host and ask them how they are using it. The plugin conflicts with open_basedir if your host restricts access to files that the plugin is trying to backup. Its like if you try to zip a file on your local computer and one of the files can’t be read by your zip utility because of permission restriction.

    The plugin isn’t doing anything that requires lax security. Your host has set up your environment is such a way that the PHP user process being used does not have access to zipping up the files it needs to create a package. Its a pretty uncommon situation but there are some hosts that choose to secure this way vs more modern security techniques.

    You can see more details about the directive here:
    https://php.net/manual/en/ini.core.php#ini.open-basedir

    Hope that helps~

    Thread Starter mscott

    (@mscott)

    Actually I am the host. And I have no idea why an account would need to be accessing outside of it’s user area and that user area is being defined in open_basedir.

    It actually looks like the plugin is just checking to see if open_basedir is set and if it is, it’s making a fuss.

    Yes, that is correct per the message:

    Issues might occur when [open_basedir] is enabled. Work with your server admin to disable this value in the php.ini file if you’re having issues building a package

    Also, note that the scanner states the following:

    Scan checks are not required to pass, however, they could cause issues on some systems. Please review the details for each section by clicking on the detail title.

    Scan checks are not required they are simply notices should users run into issues with a build.

    The plugin doesn’t access outside of the users WP site. It simply reads the WP var ABSPATH which returns the path at which the WP site is hosted.

    Are you having troubles creating a package?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Doesn’t work with open_basedir enabled’ is closed to new replies.