SilverStripe installation gives error "date.timezone option in php.ini must be set correctly." even when timezone is set

Highly Irregular

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.

Highly Irregular

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.

edited at
0

Comments

0 comments
Login to comment

Related

query session command gives error code 5 even when AllowRemoteRPC is set to 1

Async Await Gives Syntax Error Even when code Is correct

Set command gives error when trying parameter expansion to replace characters

when I set the value of a cell with google script it gives me an error

pymongo installation gives permission error

Azure deployment from git gives same error even when fixed in next commit

MyPy gives error "Missing return statement" even when all cases are tested

Why Qt .pro file gives error for a platform, even when it is not selected or mentioned?

sqlite_prepare_v2 gives error #26(File Not A Database) even when database is opened successfully

Importing matplotlib gives error even though installed

VSCode gives "Install Python" error even if it is installed

When the keyboard is opened on any page, such an error appears, can you help? Thnks (It gives the same error even if it is opened with a textfield)

Why does `date` show UTC time, even with a different timezone set?

Why MySQL table partitioning on a datetime column gives error of timezone dependent?

On Hadoop installation, bash: gives an 'is a directory error'

Visual Studio 2012 Installation gives error

Yii set date default timezone error

When I start the server in Ruby On Rails it exits as soon as it starts and sometimes doesn't even start, just gives an error

Silverstripe 3: Can I set a custom error page in silverstripe for certain page types?

Timezone Error when running GWT/GAE app

SELECT query inside TRY CATCH returns empty result set even when error occurs

vba web scraping - run-time error 91 even when object variable has been set

Angular Form Validation: $error.required set even when ng-required=false with custom input directive

SQL Server error: "Cannot insert explicit value for identity column" even when I SET IDENTITY_INSERT ON

Argparse "arguments are required" error even when I have a default value set

removing duplicates in an array with new Set gives an error

my view gives 404 error even that post with that slug exists

Storing enum with room database gives error even with TypeConverters

Typechecking with PropTypes gives me an error even though the props show properly