Re:Help with passing variables to PHP Responder
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I think have the same problem than elk, I followed the documentation, and
read the ml without success.
I first tried to setup PHPRC in a shell script ( like described in the FAQ
about php ), when I look at phpinfo(), it show PHPRC as environement
variable. but the php.ini file don't seems used, instead it use default
value ( /etc/php4-cgi/php.ini ).
here is the shell script :
#!/bin/sh
#user running the script.
PHPUSER=`id -un`
PHPRC="/home/${PHPUSER}/php.ini"
export PHPRC
PHP_FCGI_CHILDREN=4
export PHP_FCGI_CHILDREN
exec /home/cgi-bin/php4
then I tried to use SetEnv username inside a a <VirtualHost> directive,
PHPRC showed up in SERVER["PHPRC"] from phpinfo(), but the php.ini file
used is still the default one in /etc/php/php4-cgi .
I use apache 1.3.33 and php 4.3.11 on gentoo linux.
I just wish to have per virtualhost php.ini file.
can somebody help please ?
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/