Koozali.org: home of the SME Server

PHP Sandbox

Anonymous

PHP Sandbox
« 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

guest22

Re: PHP Sandbox
« Reply #1 on: July 03, 2004, 03:19:08 PM »
Quote from: "Anonymous"
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

Anonymous

PHP Sandbox
« Reply #2 on: July 03, 2004, 03:53:08 PM »
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.

guest22

PHP Sandbox
« Reply #3 on: July 03, 2004, 04:02:33 PM »
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

Anonymous

PHP Sandbox
« Reply #4 on: July 03, 2004, 04:05:04 PM »
I guess this command is short for what I did?

Regards,
Peter

guest22

PHP Sandbox
« Reply #5 on: July 03, 2004, 04:17:22 PM »
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

fishbowl

Similar problem
« Reply #6 on: July 08, 2004, 03:48:04 PM »
I do have a similar problem but my PHP is not working. Tiki is unable to find database connection ??????