• I have been attempting to install WordPress on a server with open_basedir restriction and getting the error messages I usually get when I attempt to install any kind of open source software. (“Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../wp-config-sample.php) is not within the allowed path(s)”)

    The entries on open_basedir restriction I have read elsewhere on this site seem to imply that while some of the plugins will not work with open_basedir restriction on, WordPress itself will. Is this correct? Is there a way for me to get WordPress to work without doing a ton of finding and replacing, storing many files in multiple places, and repeating the whole process whenever there is an upgrade?

    I don’t like the locally hosted version of Blogger (no label links!). Please don’t make me use it.

    Thanks,
    Rebecca

Viewing 3 replies - 1 through 3 (of 3 total)
  • When you get a message that it’s not in the allowed paths try adding the next line to the wp-config.php:

    define(‘WP_TEMP_DIR’,’/tmp’);

    /tmp might be different on your server, just have a look at the values you get in the message.

    Hi there

    Just so everyone knows – the above hack works perfectly

    …the above hack did not work on my server. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can WordPress work with openbase_dir restrictions in effect?’ is closed to new replies.