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.

Severity: Warning. Open_basedir restriction after 2.1 Upgrade.

September 17, 2010 7:40am

Subscribe [5]
  • #1 / Sep 17, 2010 7:40am

    Wilko

    8 posts

    Hi,

    We have recently successfully upgraded from 1.6.9 to 2.1.0 Build 20100810. After ironing out the few problems we had, there is one problem we are unfortunately unable to rid ourselves of.

    Upon logging in to our Control Panel, we often receive the following error message;

    A PHP Error was encountered
    Severity: Warning
    Message: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/national-ice-centre.com/httpdocs/index.php) is not within the allowed path(s): (/var/www/vhosts/nottingham-arena.com/httpdocs:/tmp)
    Filename: libraries/File_integrity.php
    Line Number: 95

    It doesn’t appear to be having any adverse effect on anything, as both our MSM sites are working fine and there are no relating CP problems. The error is somewhat of an annoyance, however.

    We have set both MSM local open_basedir’s to “none”, to no avail. We have also stripped both site_bootstrap_checksums from exp_sites and visited the front-end for both MSM sites to ensure the values are written back into the fields correctly. We have also tried clearing all cache, to no avail.

    None of this seems to have resolved the problem. I was unable to find anything further using the search, and seem to be at a loss as to further progression for a fix.

    Any help would be appreciated.

    Thanks.

    -Chris

  • #2 / Sep 17, 2010 11:29am

    Ingmar

    29245 posts

    Message: file_exists() [function.file-exists]: open_basedir restriction in effect.

    It sounds like an open_basedir restriction (a server configuration issue). Have you asked your host about it? Are you, in fact, using this configuration setting?

  • #3 / Sep 17, 2010 12:15pm

    Wilko

    8 posts

    Hi Ingmar,

    Thank you for your prompt response.

    I have emailed you further information, as I would prefer not to divulge our PHP Info on the forum.

    Thanks,

    -Chris

  • #4 / Sep 18, 2010 4:11pm

    Greg Salt

    3988 posts

    Hi Chris,

    What is the relationship between national-ice-centre.com and nottingham-arena.com? Are they aliased domains within your control panel?

    Cheers

    Greg

  • #5 / Sep 26, 2010 2:19pm

    Neil D

    7 posts

    Hi, I’m getting this same warning / error in the control panel. I do have restrictions in on my server stopping one site from seeing another, unless overridden. I don’t want to / cannot completely remove these. I need specifics about which files / directories to add to the open_basedir directives.

    So, I have two questions really:

    1) *exactly* which files does the integrity check look at on the MSM sites? Is it just index.php or are there others / does it look at a masked CP file if one is specified in the index.php file?

    2) it there anyway I can force this integrity check to be run every single time I log into the control panel so I can track down the exact files it needs access to? I ask this because it only seems to check every so often which makes it such a pain in the b*tt to track down / verify my changes to open_basedir on my testing server actually fix the problem. I don’t mind modifying the code files on my local testing server (temporarily) if you can tell me what I need to change. I’ve tried hacking around in the files but I don’t seem to be able to trigger the check every time.

    The reason I’ve got to track it down is I have a managed server and I need to tell the admin department exactly what to change. They are not keen on just opening up everything and advise me against it.

    I’d be very, very grateful if you could answer this one as I don’t have much hair left after pulling out for the last few hours. :(

  • #6 / Sep 27, 2010 3:57am

    John Henry Donovan

    12339 posts

    Neil,
    What version and build of EE are you using?

    1) *exactly* which files does the integrity check look at on the MSM sites? Is it just index.php or are there others / does it look at a masked CP file if one is specified in the index.php file?

    Mainly the integrity of the index.php files I believe.

    2) it there anyway I can force this integrity check to be run every single time I log into the control panel

    Quick way would be to switch the $debug = 0; to $debug = 1; back and forward in your index.php. That would trigger the check.

  • #7 / Sep 27, 2010 6:04am

    Neil D

    7 posts

    Hi John,

    thanks for the reply. I’ve tried flipping the debug value in the index file for the main site but this seems to only cause it to re-check the main site.

    I need it to check the MSM sites as well. I’ve tried flipping the value in their index files but it doesn’t seem to force the check. Also tried turing off / on the MSM in the config file, again no effect.

    Any ideas how I could force the MSM site check to happen?


    Many thanks,

    Neil Duffin

  • #8 / Sep 27, 2010 6:05am

    Neil D

    7 posts

    Hi John,

    sorry forgot to say I’m using EE 2.1

  • #9 / Sep 27, 2010 10:38am

    Neil D

    7 posts

    Hi John,

    got it sorted now. I found that the only way to force the re-check is to use a database backup that’s a few days old. I assume there’s some form of time-out that cause the re-check?

    It’s a bit of a pain to do this though, as I have to take the site offline while I do it and repeatedly reset the database.

    Any chance of an option being added to the ‘tools’ in a future version which causes this integrity check to be reset? That is force a re-check on next refresh of the control panel. It would make it a lot easier to make sure you’ve got your settings right.


    Regards,

    Neil Duffin

  • #10 / Sep 27, 2010 3:30pm

    Ingmar

    29245 posts

    Thank you for your feedback; glad to see you’re all set for now, please post again as needed. Thanks.

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

ExpressionEngine News!

#eecms, #events, #releases