[BlueOnyx:13207] Re: Fwd: Spotweb Installation - PHP - Open_basedir errors

Simon Cummings simon at slproperty.co.uk
Mon Jun 10 03:20:35 -05 2013


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 <simon at slproperty.co.uk> 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 <mstauber at blueonyx.it> 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
>> Blueonyx at mail.blueonyx.it
>> http://mail.blueonyx.it/mailman/listinfo/blueonyx
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20130610/14daa61f/attachment.html>


More information about the Blueonyx mailing list