Reply to Re: PHP/Pear Problem - help please!

Your name:

Reply:


Posted by NC on 02/25/06 20:34

russell.hunter@sashait.co.uk wrote:
>
> Whenever I try to call one of the installed packages, for example:
>
> require_once "DB.php";
>
> I get the following error:
>
> Warning: main(): open_basedir restriction in effect.
> File(/usr/share/pear/DB.php) is not within the allowed path(s):
> (/var/www/vhosts/xentek.co.uk/httpdocs:/tmp) in
> /var/www/vhosts/xentek.co.uk/httpdocs/wda2-winestore/index.php
> on line 19

You need to modify your php.ini. Right now, it has a line that says:

open_basedir = /var/www/vhosts/xentek.co.uk/httpdocs:/tmp

Modify it to the following:

open_basedir =
/var/www/vhosts/xentek.co.uk/httpdocs:/tmp:/usr/share/pear

Alternatively, you can simply disable safe mode...

Cheers,
NC

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация