php on/off

Marwen

Verified User
Joined
Nov 7, 2003
Messages
158
Location
germany
hello,

it is possible to switch on or off the php funktion
for each resellers or custumers individual ??

thanks for answer.
 
Marwen said:
hello,

it is possible to switch on or off the php funktion
for each resellers or custumers individual ??

thanks for answer.


Yes..

From DirectAdmin edit the custom httpd.conf for that specific domain:

php_admin_value Engine Off
 
thanks,

great for admins :)

but one more question :)

it is possible that can do the reseller from the custom package ?
like cgi on/off when he create the package ?

many thanks for help
 
hi,

thanks for you fast help and answer.

i think it will be a good feature :) or ?

please give the reseller a check box to aktivate
or deaktivate the PHP funktion for the customer by
create a package.

bye marwen
 
Hi,

yes, it will be a good feature, because our resellers just want to sell php as a feature separately.

thanks,

dryas
 
Dunno.. Think it might be possible to turn Safe Mode off per vhost like PHP will be? And openbase dir? :D


Code:
php_admin_value safe_mode 1 
php_admin_value open_basedir /home/user/:/tmp:/:/var/www/
 
"yes" :)

I'll just have to make sure that things like webmail and phpMyAdmin still work with safemode on. First small step to jailing :D

John
 
DirectAdmin Support said:
"yes" :)

I'll just have to make sure that things like webmail and phpMyAdmin still work with safemode on. First small step to jailing :D

John


Thats why I included /var/ww/ :D

Any other script thats called from the web and has a differnt path will need to be added :)

Might not be a bad idea to include /usr/lib/php to that list so things like PEAR can work if its configured from the php.ini :)
 
Hello,

The "custom httpd.conf" is located at:

Admin Panel -> Admin Settings -> Customize httpd.conf (bottom) -> domain.com

for php jailing, just add:
Code:
php_admin_value open_basedir |HOME|/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/
To add safemode, just add:
Code:
<Directory |DOCROOT|>
        php_admin_value safe_mode 1
</Directory>

John
 
Back
Top