Copy the php. ini file after installing php.

Source: Internet
Author: User
Directly # find-namephp.ini can not be found, because the installation of php does not copy the configuration file php version changes after the ini file name has changed php. ini-production corresponds to php. ini-recommendedphp.ini-development corresponds to php. what are the differences between ini-dist? Due to version updates, these files have a new name: php. ini-p

Directly # find/-name php. ini cannot be found because the ini file name is changed to php after the php version of the configuration file is not copied during php installation. ini-production corresponds to php. ini-recommended php. ini-development corresponds to php. what are the differences between ini-dist? Due to version updates, these files have a new name: php. ini-p

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-production corresponds to php. ini-recommended

Php. ini-development corresponds 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.