RE: [PHP-INST] php.ini search path?
| From: | David McMahon | Date: | Thu, 13 Jul 2000 17:37:53 +0000 |
| Subject: | RE: [PHP-INST] php.ini search path? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6505@lists.php.net to get a copy of this message | ||
I have since tried setting PHPRC just to make sure
that works, and no luck.
I export PHPRC=<location of php.ini>
Then start httpd which calls the libphp4.so module.
The php.ini doesn't seem to be seen (no change of values in phpinfo())
Also, I've tried 'strace -f' on httpd which hangs the process
with no useful information given about config file path or PHPRC.
strace without -f only tells me what httpd is calling.
Any tips on running strace against a module run by httpd?
Help!
> DM>> What is the search path for php.ini when loading
> DM>> PHP4 as a module via apache on UNIX?
>
> .:<config_value>:<phprc_value>
>
> Where config_value is value that you have defined in --config-file-path or
> /usr/local/lib
> phprc_value is value of PHPRC variable.
>
> DM>> I do not want to include the php.ini in the compile-time
> DM>> defined directory, so what is the "current working directory"
> DM>> as defined at the top of the php.ini-dist file?
> DM>> It is NOT apache/, nor apache/php/, nor apache/htdocs/ nor
> DM>> apache/libexec/ (location of libphp4.so). Where is it?
>
> You can always use strace to see.