Koozali.org: home of the SME Server

open_basedir restriction

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
open_basedir restriction
« 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
If you think you know whats going on, you obviously have no idea whats going on!

Offline thomasch

  • *
  • 232
  • +0/-0
Re: open_basedir restriction
« Reply #1 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



Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: open_basedir restriction
« Reply #2 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


 
If you think you know whats going on, you obviously have no idea whats going on!

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Re: open_basedir restriction
« Reply #3 on: December 26, 2007, 05:42:45 AM »
more like

 setprop not getprop

 yarnheaven not Primary

Offline thomasch

  • *
  • 232
  • +0/-0
Re: open_basedir restriction
« Reply #4 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

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: open_basedir restriction
« Reply #5 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
If you think you know whats going on, you obviously have no idea whats going on!