You need to have the PHPRC as enviroment's variable pointed to specific folder and only one php.ini into that folder. Important: the php.ini file must be named php.ini and the PHPRC enviroment's variable must to written in capital letter.
Anyway i'm no sure if you can define the PHPRC from vhost configuration, i mean probably you can but maybe doesn't work cos the PHPRC waa thinking to use it with diferent php/apache versions in the same machine or share the php compilation among several server... Please let me know your progress about this. J. Sent from my HTC ----- Reply message ----- From: "Jan-Florian Hilgenberg" <florianhilgenb...@googlemail.com> Date: Fri, Mar 18, 2011 08:24 Subject: [PHP-INSTALL] problem with phprc var To: <php-install@lists.php.net> hi. i have some trouble with an php5 installation used by an apache2 webserver and the suphp wrapper. when i want to use another php.ini for one of my vhosts and have set it via "setenv phprc /path/to/the/php/ini/dir" if i have an empty docroot with only one index.php including a "phpinfo();" then the phpinfo will not parse the custom php.ini. - the phprc var is set as wanted in the phpinfo output... but if I create an !empty! php.ini in the docroot the custom php.ini will get parsed and the phprc var is set also... i have to create the php.ini file for every subdir. and i am very confused ;-/ my versions: debian squeeze php 5.3.5-0.dotdeb.1 apache 2.2.16-6 suphp 0.7.1-1 thank you for your help