Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: crazybob on December 19, 2007, 06:04:23 AM

Title: open_basedir restriction
Post by: crazybob on December 19, 2007, 06:04:23 AM
I am trying to install a shopping cart system for a client. Most things are working well, except for one screen. It goes blank. Checking the message log it tells me
"PHP Warning:  main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/home/e-smith/files/ibays/yarnheaven/:/tmp) in /home/e-smith/files/ibays/yarnheaven/html/modules/payment/pppro/pear/Services/PayPal.php on line 18"

Can anyone give me a push in a direction to fix this.

TIA

Bob
Title: Re: open_basedir restriction
Post by: thomasch on December 19, 2007, 07:46:45 AM

You are running in to a PHP open_basedir restriction see the wiki for more details

http://wiki.contribs.org/PHP#Open_basedir_restriction (http://wiki.contribs.org/PHP#Open_basedir_restriction)


Title: Re: open_basedir restriction
Post by: crazybob on December 26, 2007, 03:51:42 AM
I have attempted to follow the wiki mentioned, but when I apply the command "db accounts getprop Primary PhpBasedir" it returns blank. I know my server is fairly heavily modified, so I connected to a couple of SME 7.2 servers, and get the same result.

I am reluctant to go much further without a little more insight.

Thanks

Bob


 
Title: Re: open_basedir restriction
Post by: stephen noble on December 26, 2007, 05:42:45 AM
more like

 setprop not getprop

 yarnheaven not Primary
Title: Re: open_basedir restriction
Post by: thomasch on December 26, 2007, 06:07:01 AM
bob,

I think line below will do the job :

Code: [Select]
db accounts setprop yarnheaven PHPBaseDir /tmp/:/home/e-smith/files/ibays/yarnheaven/:/usr/share/pear/
then

Code: [Select]
signal-event ibay-modify yarnheaven
thomas
Title: Re: open_basedir restriction
Post by: crazybob on December 26, 2007, 12:34:24 PM
Hi Stephen. Thanks for the input. I was trying to go exactly by the wiki to see what was returned, and did not get what the instructions said I should. It is a production server, so I tread lightly.

Thomas, thank you very much. That worked perfectly

Happy holidays to the both of you, and to all at contribs.org