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