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