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
