Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

[solved] date.timezone error


Go to End


3 Posts   1430 Views

Avatar
digibrains

Community Member, 130 Posts

12 October 2014 at 8:31am

Edited: 12/10/2014 8:33am

I just ran into a strange issue. For seemingly no reason a fresh local install of SS via Composer, I'm getting the date.timezone in my php.ini file error when I run the installer. I'm 100% positive my ini file is correct. Adding "php_value date.timezone America/Los_Angeles" to my .htaccess file removes the error and now I can install, but I'm wondering what the cause of this error is to avoid the headache in the future. Any suggestions?

FYI - This is an old issue, at least since 2011: http://www.silverstripe.org/community/forums/installing-silverstripe/show/15398/

Avatar
camfindlay

Forum Moderator, 267 Posts

13 October 2014 at 10:30am

Hey, just something to check... I have been caught on this a couple of time too... make sure you have edited the correct php.ini file... sometimes the command line php is using a different php.ini file.

Hope that helps, worth a look. Let me know how you get on.

Avatar
digibrains

Community Member, 130 Posts

14 October 2014 at 6:18am

Of course!

/etc/php5/apache2/php.ini was set, but /etc/php5/cli/php.ini wasn't.

Thanks!