Copy the php. ini file after installing PHP.

Source: Internet
Author: User

Direct

# Find/-name "php. ini"

Cannot be found because the configuration file is not copied during PHP installation.

After the PHP version changes, the INI file name will change.

PHP. ini-ProductionCorresponding to PhP. ini-recommended

PHP. ini-developmentCorresponding to PhP. ini-Dist

 

What are the differences between them?

Due to version updates, these files have a new name:
PHP. ini-production corresponds to PhP. ini-recommended
PHP. ini-development corresponds to PhP. ini-Dist

You usually need to rename PHP. ini-Dist or PHP. ini-recommended to PhP. ini.

The difference between the two is that PHP. ini-Dist is suitable for development programs (for testing ),

PHP. ini-recommended has a high security setting, which is suitable for product launch.

I usually change PHP. ini-recommended or the new PHP. ini-production to PhP. ini to ensure that the test environment (local) is consistent with the formal environment (online.

You need to go back to the PHP installation directory

# Cp PHP. ini-recommended/usr/local/PHP/lib/PHP. ini

Or

# Cp PHP. ini-production/usr/local/PHP/lib/PHP. ini

 

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.