Web Hosting Talk







View Full Version : different php.ini's?


Lem0nHead
05-18-2004, 09:05 PM
hello

is it possible to run 2 different php.ini configs in the same server?

i know that cpanel uses a different php.ini then the other sites (but it use other httpd port too)

what i'd like to know is to split my clients accounts into "trustable" and "not trustable" and put php.ini more restrictions to the "not trustable"s one

that's because ONE of my clients (and it seens just him) need PHP exec function (i checked the script and it doesn't do anything harmful), and i'm not willing to loose him...

thanks

stftk
05-18-2004, 11:00 PM
No you cannot run two different php.ini's . That would essentially be running two web servers on one server, which would work as they would both try to bind to port 80.

You could find a cheaper server for like 80-100/month and put the clients that need special functions on there, or you could just enable them globally.

BTW - you could always use the safe_mode_exec_dir setting in php.ini to set which directories you would like the special functions to be allowed to be executed in. See: http://us2.php.net/features.safe-mode

Steven
05-18-2004, 11:13 PM
BTW - you could always use the safe_mode_exec_dir setting in php.ini to set which directories you would like the special functions to be allowed to be executed in. See: http://us2.php.net/features.safe-mode


that is if he is using safe mode

Raptors
05-19-2004, 08:48 AM
Can we enable the php functions that have been disabled in php.ini? How to do that in httpd.conf?