General Apache after installing PHP, PHP configuration file default load location under the php/lib/folder, if there is no php.ini file under the folder, Apache will not find the PHP configuration file, there are two methods,
The first method is to copy the same version of the PHP configuration file to the default load folder, then the configuration in this configuration file will be applied.
The second method is to specify an existing php.ini location. Here's how:
(add Phpinidir/usr/local/lib/php.ini in the last line of the httpd.conf file)
Such as:
After the modified Apache configuration is as follows:
You can view it by accessing a PHP file that means output phpinfo ().
The above describes the modification of the Apache configuration specified PHP configuration file Phpini location, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.