PDA

View Full Version : php on/off



Marwen
11-07-2003, 06:19 AM
hello,

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

thanks for answer.

The Prohacker
11-07-2003, 10:01 AM
Originally posted by Marwen
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

Marwen
11-07-2003, 10:19 AM
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

DirectAdmin Support
11-07-2003, 10:44 AM
Hello,

No, the php option is not there.

John

Marwen
11-09-2003, 01:02 AM
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

dryas
11-10-2003, 01:38 AM
Hi,

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

thanks,

dryas

DirectAdmin Support
11-10-2003, 11:57 AM
Hello,

Added for next release. (1.201)

John

The Prohacker
11-10-2003, 10:45 PM
Dunno.. Think it might be possible to turn Safe Mode off per vhost like PHP will be? And openbase dir? :D




php_admin_value safe_mode 1
php_admin_value open_basedir /home/user/:/tmp:/:/var/www/

DirectAdmin Support
11-10-2003, 11:06 PM
"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

The Prohacker
11-10-2003, 11:13 PM
Originally posted by DirectAdmin Support
"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 :)

UltimeWWW
12-17-2003, 06:02 AM
Where is the option in DA located? (Modify httpd.conf for specific user)

Thanks.

DirectAdmin Support
12-17-2003, 10:32 AM
Hello,

The "custom httpd.conf" is located at:

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

for php jailing, just add:


php_admin_value open_basedir |HOME|/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/To add safemode, just add:

<Directory |DOCROOT|>
php_admin_value safe_mode 1
</Directory>

John