Path Problem

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
haelen

Path Problem

Post 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
martin42
Forum Members
Forum Members
Posts: 126
Joined: Sat Aug 20, 2005 11:35 pm

Re: Path Problem

Post 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
haelen

Re: Path Problem

Post 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
Locked

Return to “[locked] Installation, Setup and Upgrade”