ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Why do you need open_basedir restriction removed?

February 20, 2011 5:16am

Subscribe [2]
  • #1 / Feb 20, 2011 5:16am

    vicos

    22 posts

    This question may be related to a resolved thread.

    What in the world are you trying to do that you need open_basedir restriction removed?  Access a tmp dir?  This is a security issue.

    Is not there some way to make this work with open_basedir imposed?

    Your pre-install system-checker did not report this as an issue…

  • #2 / Feb 20, 2011 5:26am

    vicos

    22 posts

    NEVER MIND :(

    I didn’t see the path to the avatar upload directory below was set to “/”

    Kinda assumed it was set to images/avatar since that directory preexisted.

  • #3 / Feb 20, 2011 5:35am

    vicos

    22 posts

    Alright, I take back that never mind.

    I changed the “Server Path to Avatar Folder” to the proper path and made sure the folder was 777.  There is also a folder inside called “uploads” and that is 777.

    I still get the same error:
    ———

    A PHP Error was encountered

    Severity: Warning

    Message: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/[snip]:/usr/lib/php:/usr/local/lib/php:/tmp)

    Filename: core/Common.php

    Line Number: 72

    —-

    This is a function that checks to see if a file can be written to the specified directory.

    If I specified the proper URL, path and the file privs are correct, what else is possible other than a bug in the code?  Unfortunately, I don’t have a traceback to the code that calls Common.php to look at it…

  • #4 / Feb 20, 2011 5:51am

    vicos

    22 posts

    EE v2.1.3

    The reason removing the open_basedir restriction in the aforementioned thread probably resolved the issue is because there is a bug in your code that is checking for write privs in the incorrect directory path—which coincidentally is outside your basedir.

  • #5 / Feb 21, 2011 4:24am

    John Henry Donovan

    12339 posts

    vicos,

    Is this the bug you are referring to

    Can you show us what your server path looks like please?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases