Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Johan on February 03, 2002, 03:29:43 PM

Title: open_basedir restriction in effect [PHP on 5.1.2]
Post by: Johan 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
Title: Re: open_basedir restriction in effect [PHP on 5.1.2]
Post by: Luke Drumm on February 05, 2002, 08:01:51 AM
I've posted a how-to here:
http://forums.contribs.org/index.php?topic=12706.msg47725#msg47725

Regards,
Luke
Title: Re: open_basedir restriction in effect [PHP on 5.1.2]
Post by: Charlie Brady 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