The configuration file for php is php.ini.
The file is present in /etc directory.
Open a Terminal. Change to Root user.
bash#su -s
enter password
bash# cd /etc
bash# ls -l | grep php.ini
-rwxr-xr-x 1 root wheel 72020 Apr 18 11:17 php.ini.default
bash# chmod 755 php.ini.default
Rename the file to pho.ini
mv php.ini.default
Edit the file and set the following settings if you wish too.
vi php.ini
To seach use /<word>
Userful settings
display_errors On
disaplay_start_errors - On
error_log /var/log/apache2/php_errors.log
write and quit
restart apache to reflect changes
bash#apachectl restart
Additional commands
php -v - version of php
php -m - modules installed like ssl, sockets etc.,
php -i - view php.ini configuration files