Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started 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
-
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)
-
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
-
more like
setprop not getprop
yarnheaven not Primary
-
bob,
I think line below will do the job :
db accounts setprop yarnheaven PHPBaseDir /tmp/:/home/e-smith/files/ibays/yarnheaven/:/usr/share/pear/
then
signal-event ibay-modify yarnheaven
thomas
-
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