<div dir="ltr">Hi Michael,<div><br></div><div style>Thanks for the quick reply... I'll give it a go and let you know how I get on.</div><div style><br></div><div style>Cheers,</div><div style><br></div><div style>Simon.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 4 June 2013 15:24, Michael Stauber <span dir="ltr"><<a href="mailto:mstauber@blueonyx.it" target="_blank">mstauber@blueonyx.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Simon,<br>
<div class="im"><br>
> I'm installing SpotWeb on my 5108R installation and I'm getting an<br>
> 'open_basedir' error.<br>
><br>
> When I attempt to login, run a PHP script from the CLI (php<br>
> retrieve.php) I get a Open_basedir error.<br>
><br>
> So I thought it was a permissions problem, but it nows look to be PHP<br>
> config related.<br>
><br>
> So some information first:<br>
> Path to SpotWeb files: /home/.sites/143/site2/web<br>
> open_basedir values from from info.php:<br>
> Local Value:<br>
> /var/lib/php/session/:/usr/sausalito/configs/php/:home/.sites/143/site2<br>
> Master Value: /tmp/:user/sausalito/configs/php/:/var/lib/php/session/<br>
><br>
> Permissions:<br>
><br>
> Owner: apache<br>
><br>
> Group:site2<br>
<br>
</div>Enable suPHP for that site and use "Web Ownership" to chown the /web of<br>
the site to the UID of a siteAdmin of that site. That will also create a<br>
php.ini with the correct open_basedir entries in<br>
/home/.sites/143/site2/php.ini<br>
<div class="im"><br>
> Here's the error when attempting to run: php<br>
> /home/.sites/143/site2/web/upgrade-db.php<br>
><br>
> PHP Warning: chdir(): open_basedir restriction in effect.<br>
> File(/home/.sites/143/site2/web) is not within the allowed path(s):<br>
> (/tmp/:/usr/sausalito/configs/php/:/var/lib/php/session/) in<br>
> /home/.sites/143/site2/web/upgrade-db.php on line 10<br>
<br>
</div>Then to run that script from the command line, tell the PHP interpreter<br>
to use the sites separate php.ini file like this:<br>
<br>
php -c /home/.sites/143/site2/php.ini your-script.php<br>
<br>
That ought to work.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
With best regards<br>
<br>
Michael Stauber<br>
_______________________________________________<br>
Blueonyx mailing list<br>
<a href="mailto:Blueonyx@mail.blueonyx.it">Blueonyx@mail.blueonyx.it</a><br>
<a href="http://mail.blueonyx.it/mailman/listinfo/blueonyx" target="_blank">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a><br>
</font></span></blockquote></div><br></div>