Where is php. ini? _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
Where is php. ini ?. On Unix, php (as the mainstream development language ). the INI file is put on usrlocallib by default, because the default storage path is install-pathlib, but can be used on Unix during compilation, php (as the mainstream development language ). INI files are stored on/usr/local/lib by default, because the default storage path is /Lib, but you can use the -- with-config-file-path parameter during compilation to modify php (as the mainstream development language ). ini storage location. for example, you can use -- with-config-file-path =/etc to store it under/etc, then you can copy php from the source code package (as the mainstream development language ). ini-dist to/etc/php (as the mainstream development language ). ini and modify it to meet your needs.
Php on Windows (as the mainstream development language ). the default location of ini is the windows system directory. If apache (the most popular WEB server platform on Unix) is used, it will first begin with apache (the most popular WEB server platform on Unix) find php in the installation directory (as the mainstream development language ). ini, for example: c: program filesapache (the most popular WEB server platform on the Unix platform) groupapache (the most popular WEB server platform on the Unix platform ), in this way, you can set different php (as the mainstream development language) for different apache (the most popular WEB server platform on Unix) versions on the same machine ). ini file.

Development (as the mainstream development language ). the INI file is put on/usr/local/lib by default, because the default storage path is install-path/lib, but it can be used during compilation...

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.