Email
Share

We Rock Your Web Forum » Content Management Systems » Drupal

Drupal open_basedir restriction

(4 posts)
  1. asterix

    member
    Joined: Aug '09
    Posts: 19

    I'm running Drupal 6 and randomly getting this error. It doesn't seem to be effecting anything, but I can see it when I'm logged out occasionally, which means my visitors are seeing it too (not good):

    warning: is_dir()[function.is-dir]: open_basedir restriction in effect. File (/tmp/mysql.sock) is not within the allowed path(s): (/home/user/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/user/public_html/includes/file.inc on line 922

    I am completely lost on this one. I've been able to troubleshoot many Drupal errors in the past, but this one is over my head. mysql.sock - does that have to do with a socket connection? Anyways, any help anyone can provide is much appreciated!!

    Posted 1 year ago #

  2. Posted 1 year ago
  3. Anonymous



    It appears that in most cases the solution is to contact your hosting provider. I've had this error in the past, have searched forums, etc. and the only reliable solution I've come across is to have your host fix the issue on their end.

    Just call them or open a support ticket and mention the above error message. The key is the "open_basedir" restriction part.

    Posted 1 year ago #
  4. Anonymous



    If you have access to WHM, you can disable the open_basedir restriction by logging in as the root user and then browsing to the "Security" section and clicking on "php open base_dir." You'll be able to disable the open base restriction for a single account (website), or for the entire server.

    Posted 1 year ago #
  5. cwd

    senior admin
    Joined: Jul '09
    Posts: 225

    You can also try browsing to Site Configuration > File System (/admin/settings/file-system), and checking your TMP path. We typically set this to /files/images/tmp, and CHMOD to 777). That will hopefully do the trick!

    Posted 3 months ago #

RSS feed for this topic

Reply

(required)

Allowed markup: BBcode blockquote code em strong ul ol li font strike center u hr.
You can also put code in between backtick ( ` ) characters.