Page 1 of 1

Path Problem

Posted: Fri May 23, 2008 5:02 am
by haelen
Hi,

I get the following when installing CMS:

Code: Select all

Warning: is_writable() [function.is-writable]: open_basedir restriction in effect.
 File(/var/lib/php5) is not within the allowed path(s): (/home/trowe/html/road/:/tmp)
 in /home/trowe/html/road/install/lib/classes/CMSInstallerPage1.class.php on line 96
Mine is a virtual server so I can't  edit enything like PHP.ini. What line of code should I add to correct this error?

I already have:

Code: Select all

php_admin_value open_basedir "/home/trowe/html/road/:/tmp"
TIA,
Tim

Re: Path Problem

Posted: Fri May 23, 2008 11:56 am
by martin42
Use the source, Luke!  Look at /home/trowe/html/road/install/lib/classes/CMSInstallerPage1.class.php line 96.

The call being made is "is_writable(session_save_path())" (if your copy is the same as mine) so it looks like your session save path isn't below the folder that open_basedir points to.  I don't think the PHP session save path isn't controlled by the open_basedir setting anyway, so you can probably just ignore that warning as a false alarm.   

But, the install script was trying to head off potential problems by making sure the session store was writable.  So you might want to take a look and see whether /var/lib/php5 is actually a good place for storing your PHP session files, and override that setting if necessary.

- Martin

Re: Path Problem

Posted: Fri May 23, 2008 2:15 pm
by haelen
Thanks Martin.

I've seen so many similar errors generated from other CMS's that I kind of panicked and failed to scroll down the install page to see that I *could* carry on with the installation. :)

Now installed OK.

Cheers,
Tim