Friday, August 27, 2010

on the trail of php

Early on in the configuration process I see this:

ERROR: date.timezone not set in php.ini. Please contact your hosting company to set the timezone in the server PHP configuration before continuing.

Modified php.ini as follows to fix:

root@zen:/etc# git diff /etc/php5/apache2/php.ini
diff --git a/php5/apache2/php.ini b/php5/apache2/php.ini
index c105148..4962415 100644
--- a/php5/apache2/php.ini
+++ b/php5/apache2/php.ini
@@ -945,8 +945,8 @@ default_socket_timeout = 60

[Date]
; Defines the default timezone used by the date functions
-; http://php.net/date.timezone
-;date.timezone =
+http://php.net/date.timezone
+date.timezone = America/Los_Angeles

; http://php.net/date.default-latitude
;date.default_latitude = 31.7667
root@zen:/etc#

No comments: