Advertisement:

Author Topic: SSI.php open basedir restriction in 2.0b3  (Read 10220 times)

Offline ibookdb

  • Jr. Member
  • **
  • Posts: 117
  • Internet Book Database
    • Internet Book Database
SSI.php open basedir restriction in 2.0b3
« on: March 19, 2008, 02:12:52 PM »
I created a file to test SSI.php which works on 1.1.4 but fails in 2.0b3 with this error:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/data_061e03e3d6d5f3e9c557bebba54e79c1-SMF-modSettings.php) is not within the allowed path(s):

Is there a way to make this work or do I have to change my open_basedir settings? The code in the file is here:

<?php
require_once('SSI.php');
ssi_login();
global $context;
echo $context['user']['id'];
?>
Manage Your Book Collection Online at The Internet Book Database

Random Books from My Bookshelf

iBookDB

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,868
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: SSI.php open basedir restriction in 2.0b3
« Reply #1 on: March 19, 2008, 02:24:07 PM »
Open up Settings.php and make sure this line is in there right below $sourcedir:

Code: [Select]
$cachedir = $boarddir . '/cache'; # Path to the cache directory.
Michael Eshom
Cincy Space - now open!

Offline ibookdb

  • Jr. Member
  • **
  • Posts: 117
  • Internet Book Database
    • Internet Book Database
Re: SSI.php open basedir restriction in 2.0b3
« Reply #2 on: March 19, 2008, 02:45:40 PM »
Thanks, I added that and the warning is gone!
Manage Your Book Collection Online at The Internet Book Database

Random Books from My Bookshelf

iBookDB