Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2000071

[PHP] RE: [PHP-INST] php.ini search path? From: David McMahon (djm <email protected>)
Date: 07/13/00

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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>