PHP and Apache Environment build _php Tutorial

Source: Internet
Author: User
Tags sapi
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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.