What does Phpinidir do when Apache is set?
What does Phpinidir do when Apache is set?
Unlike the PHP4 search php.ini is under%systemroot%, PHP5 finds php.ini in the following order:
* Phpinidir (Apache 2 module only)
* Registry key value: Hkey_local_machine-software-phpinifilepath
* Environment variable:%phprc%
* PHP5 directory (for CLI), or Web server directory (for SAPI modules)
* Windows directory (C:\windows or C:\WINNT)
So if it's Apache + PHP5, you can use Phpinidir to specify the path to the PHP5 configuration file php.ini.
As in httpd.conf:
#以apache的模块方式运行php
LoadModule Php4_module/apache/php/sapi/php4apache.dll
Phpinidir/apache/php/php.ini
To rewrite your PHP installation path here
http://www.bkjia.com/PHPjc/477461.html www.bkjia.com true http://www.bkjia.com/PHPjc/477461.html techarticle What does Phpinidir do when Apache is set? What does Phpinidir do when Apache is set? Unlike PHP4 search php.ini is under%systemroot%, PHP5 in the following order ...