Where is the php. ini file?

Source: Internet
Author: User
If phptutorial is 5.2.xif it is a lampenvironment, PHP source file php-5.2.x.tar.gz after decompression there will be a php-5.2.x folder. In the php-5.2.x folder, perform./configure -- prefix =/opt/php5.2, make, makeintall, and then produce... "/> <s

Assume that the php version is 5.2.x.

If it is a lampenvironment, PHP source file php-5.2.x.tar.gz after decompression there will be a php-5.2.x folder.
In the php-5.2.x folder./configure -- prefix =/opt/php5.2, make, make intall,
The php5.2 folder will be created under/opt/(this folder is required for running ).


After the installation is successful, open the phpinfo file.


[Php]
Phpinfo ();

Phpinfo ();

 

 

Attribute: Configuration File (php. ini) Path contains the Path pointed to by php. ini.

However, if the php. ini file is not found, where is the php. ini file?

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

Search Result: (my own environment)
/Php-5.2.17/php. ini-recommended
/Php-5.2.17/php. ini-dist


Oh, the original folder after decompression in the php-5.2.x Ah!

Cp./php-5.2.17/php. ini-dist php5.2/

Restart Apache

Refresh the phpinfo file to find your 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.