Where the hell are the php.ini files?

Source: Internet
Author: User
Author: zccst

If the PHP version is 5.2.x

If it is a lamp environment, then the PHP source file php-5.2.x.tar.gz decompression will have a php-5.2.x folder.
Under the php-5.2.x folder./configure--prefix=/opt/php5.2, make, made Intall,
The php5.2 folder is then produced under/opt/(the folder is required for runtime).

After the installation is successful, open the Phpinfo file.

Phpinfo ();




Attribute: Configuration File (php.ini) path has php.ini points.

However, enter the path, found that with no php.ini file, then php.ini in the end.

Find ways:
Exit the php5.2 folder to the parent directory, and then execute the following lookup command:
Find./-name "php.ini*"

Find results: (my own environment)
./php-5.2.17/php.ini-recommended
./php-5.2.17/php.ini-dist


Oh, the original in the php-5.2.x unpacked folder Ah.

CP./php-5.2.17/php.ini-dist PHP5.2/

Restart Apache

Then refresh the Phpinfo file, that is, find your own php.ini file.

Loaded Configuration file:xxxxxxxxx

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.