When you try to find some configuration values used while compiling php or checking the php.ini location, you might get the following error.
php -i | grep config
PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in Unknown on line 0
Configure Command => './configure' '--prefix=/usr/local/php53' '--with-layout=GNU' '--enable-libxml' '--with-libxml-dir=/usr/local' '--with-apxs=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL' '--disable-ipv6' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=i386-portbld-freebsd7.2' '--with-curl' '--enable-ftp' '--with-gd' '--enable-mbstring' '--with-mcrypt' '--with-mysql' '--with-mysqli' '--with-openssl' '--enable-pcntl' '--with-pcre-regex' '--enable-soap' '--with-zlib' '--enable-cgi' '--enable-ctype' '--enable-dom' '--enable-xml' '--enable-simplexml'
PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in Unknown on line 0
To fix this error, add date.timezone in php.ini
php -i | grep php.ini # to find the location of php.ini
Then,
echo 'date.timezone = "America/New_York"' >> /path/to/php.ini