Koozali.org: home of the SME Server

open_basedir restriction in effect [PHP on 5.1.2]

Johan

open_basedir restriction in effect [PHP on 5.1.2]
« on: February 03, 2002, 03:29:43 PM »
Hi
I wrote earlier in the General forum about this issue ( http://forums.contribs.org/index.php?topic=3337.msg11257#msg11257 ) but I haven’t got any solution yet and I need it fast.
I have a php script that is located in one i-bay that access and edit files in another i-bay. This used to work in 5.0 but not in the 5.1 because of a new security feature.
I can't get it to work with Charlie Brady solution ( http://forums.contribs.org/index.php?topic=3337.msg11257#msg11257 ):

---
/sbin/e-smith/db accounts setprop foo PHPBaseDir /home/e-smith/files
# Where 'foo' is the name of the i-bay, and /home/e-smith/files is the new
# Base directory you wish to allow access to (see PHP doco for details).
/sbin/e-smith/signal-event ibay-modify foo
---

Is there anyway to shutdown this feature completely?

Johan

Luke Drumm

Re: open_basedir restriction in effect [PHP on 5.1.2]
« Reply #1 on: February 05, 2002, 08:01:51 AM »

Charlie Brady

Re: open_basedir restriction in effect [PHP on 5.1.2]
« Reply #2 on: February 06, 2002, 10:14:20 PM »
Johan wrote:

> This used to work in 5.0 but
> not in the 5.1 because of a new security feature.
> I can't get it to work with Charlie Brady solution (
> http://forums.contribs.org/index.php?topic=3337.msg11258#msg11258 ):
>
> ---
> /sbin/e-smith/db accounts setprop foo PHPBaseDir
> /home/e-smith/files
> # Where 'foo' is the name of the i-bay, and
> /home/e-smith/files is the new
> # Base directory you wish to allow access to (see PHP doco
> for details).
> /sbin/e-smith/signal-event ibay-modify foo

Try this:

/sbin/e-smith/db accounts setprop foo PHPBaseDir /
/sbin/e-smith/signal-event ibay-modify foo

Charlie