I'm trying to get an installation of SilverStripe working, but on the installation page it's giving the error: date.timezone option in php.ini must be set correctly
even though the timezone is set to Pacific/Auckland
I had edited my php.ini file to set the time zone, then restarted apache, and it still doesn't work. The relevant lines in php.ini are:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Pacific/Auckland
The server is running Ubuntu on AWS.
Editing a PHP file to run the command phpinfo(), then viewing the result in your browser, shows the timezone information currently configured for PHP. If the php.ini date.timezone setting has worked, the correct timezone should be visible in the phpinfo() output.
Strangely it seems an apache restart wasn't enough to change the PHP date.timezone configuration, as phpinfo() showed that the date.timezone setting was still empty. Rebooting the server got it working though.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments