Re: FW: [PHP] REALLY NEWB QUESTION - include issue
| From: | Chris | Date: | Tue, 01 Jul 2008 09:00:24 +0000 |
| Subject: | Re: FW: [PHP] REALLY NEWB QUESTION - include issue | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276156@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Thijs Lensselink [mailto:dev@lenss.nl]
> Sent: Tuesday, July 01, 2008 1:58 AM
> To: php-general@lists.php.net
> Subject: RE: [PHP] REALLY NEWB QUESTION - include issue
>
> Quoting TS <sunnrunner@gmail.com>:
>
>>> Code segment?
>>> Exact error message? (Is there more context?)
>> Include (/file);
>>
>> Function.include</a>]: open_basedir restriction in effect.
>> File(/var/www/vhosts/domain/httpdocs/file.php) is not within the allowed
>> path(s): (/var/www/vhosts/differentdomain/httpdocs:/tmp) in
>> /var/www/vhosts/samedifferentdomain/httpdocs/custom-template.php on line
> 151
/var/www/vhosts/domain/httpdocs/file.php is not in the paths you allowed:
/var/www/vhosts/differentdomain/httpdocs
or
/tmp
So you'll need to adjust it through your apache config or you can
disable it just for that domain as well.
See
http://www.php.net/manual/en/configuration.changes.php#configuration.changes.apache
and
http://www.php.net/manual/en/features.safe-mode.php#ini.open-basedir
--
Postgresql & php tutorials
http://www.designmagick.com/