Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Anonymous on July 03, 2004, 02:16:16 PM
-
Hello,
Does anybody know how to disable the PHP sandbox feature on SME 6.0.1?
There used to be an article on the old forums at e-smith.org but here on contribs.org I cannot find it anymore (only references to the old document that cannot be accessed anymore)
Thanks.
Peter
-
Hello,
Does anybody know how to disable the PHP sandbox feature on SME 6.0.1?
There used to be an article on the old forums at e-smith.org but here on contribs.org I cannot find it anymore (only references to the old document that cannot be accessed anymore)
Thanks.
Peter
Hi Peter,
This post totally confuses me.... meaning WHAT are you talking about ;-) (e.g. what doc or what post or what subject etc)
RequestedDeletion
-
Never mind. I've already figured it out. I was reffering to this "95AddType00PHP2ibays" section from httpd.conf template:
# Set the sandbox within which PHP is confined to play
my $basedir = db_get_prop(\%accounts, $key, 'PHPBaseDir') ||
"/home/e-smith/files/ibays/$key";
$OUT .=
" php_admin_value open_basedir $basedir\n";
I copied it to a custom template and commented out all the lines mentioned above so I could include PHP stuff from other I-Bays as well.
I dug this up a long time ago when this forum was still running at e-smith.org, but I could not find it over here so I thought I'd ask.
Regards,
Peter.
-
Ok,
I guess you needed the below commands:
/sbin/e-smith/db accounts setprop your_i-bay_name PHPBaseDir /
/sbin/e-smith/signal-event ibay-modify your_i-bay_name
RequestedDeletion
-
I guess this command is short for what I did?
Regards,
Peter
-
Dunno about 'short' but changing db entries is for more advanced guys (not me! I just looked it up ;-) ) and making custome templates is the 'safe' way if you want to undo changes.
I guess both work. Matter of sysadmin preferences.
Nice weekend
-
I do have a similar problem but my PHP is not working. Tiki is unable to find database connection ??????