Hi Michael, Just a quick note to say thank you for the advice. I've not got it working as desire.
Regards, Simon On 4 June 2013 15:37, Simon Cummings <[email protected]> wrote: > Hi Michael, > > Thanks for the quick reply... I'll give it a go and let you know how I get > on. > > Cheers, > > Simon. > > > On 4 June 2013 15:24, Michael Stauber <[email protected]> wrote: > >> Hi Simon, >> >> > I'm installing SpotWeb on my 5108R installation and I'm getting an >> > 'open_basedir' error. >> > >> > When I attempt to login, run a PHP script from the CLI (php >> > retrieve.php) I get a Open_basedir error. >> > >> > So I thought it was a permissions problem, but it nows look to be PHP >> > config related. >> > >> > So some information first: >> > Path to SpotWeb files: /home/.sites/143/site2/web >> > open_basedir values from from info.php: >> > Local Value: >> > /var/lib/php/session/:/usr/sausalito/configs/php/:home/.sites/143/site2 >> > Master Value: /tmp/:user/sausalito/configs/php/:/var/lib/php/session/ >> > >> > Permissions: >> > >> > Owner: apache >> > >> > Group:site2 >> >> Enable suPHP for that site and use "Web Ownership" to chown the /web of >> the site to the UID of a siteAdmin of that site. That will also create a >> php.ini with the correct open_basedir entries in >> /home/.sites/143/site2/php.ini >> >> > Here's the error when attempting to run: php >> > /home/.sites/143/site2/web/upgrade-db.php >> > >> > PHP Warning: chdir(): open_basedir restriction in effect. >> > File(/home/.sites/143/site2/web) is not within the allowed path(s): >> > (/tmp/:/usr/sausalito/configs/php/:/var/lib/php/session/) in >> > /home/.sites/143/site2/web/upgrade-db.php on line 10 >> >> Then to run that script from the command line, tell the PHP interpreter >> to use the sites separate php.ini file like this: >> >> php -c /home/.sites/143/site2/php.ini your-script.php >> >> That ought to work. >> >> -- >> With best regards >> >> Michael Stauber >> _______________________________________________ >> Blueonyx mailing list >> [email protected] >> http://mail.blueonyx.it/mailman/listinfo/blueonyx >> > >
_______________________________________________ Blueonyx mailing list [email protected] http://mail.blueonyx.it/mailman/listinfo/blueonyx
