[BlueOnyx:12170] Re: PHP Issues on 5108R

David Hahn ml at sb9.com
Fri Feb 8 15:03:38 -05 2013


On 2/8/2013 10:31 AM, Richard Barker wrote:
> After installing a component in Joomla 2.5.9 I get this error when
> trying to use that component.
>
> PHP Warning:  require_once(): open_basedir restriction in effect.
> File(/usr/share/pear/PEAR.php) is not within the allowed path(s):
> (/var/www/html/:/var/lib/php/session/:/home/:/usr/sausalito/configs/php/:/tmp/:/home/.sites/70/site4/)
> in
> /home/.sites/70/site4/web/administrator/components/com_extplorer/libraries/FTP.php
> on line 33, referer: http://x.x.x.x/administrator/index.php
> PHP Warning:  require_once(/usr/share/pear/PEAR.php): failed to open
> stream: Operation not permitted in
> /home/.sites/70/site4/web/administrator/components/com_extplorer/libraries/FTP.php
> on line 33, referer: http://x.x.x.x/administrator/index.php
> PHP Fatal error:  require_once(): Failed opening required 'PEAR.php'
> (include_path='.:/usr/share/pear:/usr/share/php') in
> /home/.sites/70/site4/web/administrator/components/com_extplorer/libraries/FTP.php
> on line 33, referer: http://x.x.x.x/administrator/index.php
>
>
> The site php path is this:
> Open Basedir (Server):
> /home/
> /home/.sites/70/site4
> /tmp/
> /usr/sausalito/configs/php/
> /var/lib/php/session/
> /var/www/html/
>
> And the Open Basedir (Vsite):
> is empty
>
> Thanks,
> RC
>
>
Try using just '/' forward slash in the GUI. Open Basedir (Vsite): 
<javascript: void 0> field
This defeats the security of open base but allows the script to run.
HTH
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20130208/2226d68f/attachment.html>


More information about the Blueonyx mailing list