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

install.php errors creating MySQL databases


Go to End


3 Posts   2386 Views

Avatar
wizzofoz

Community Member, 9 Posts

23 November 2009 at 9:19am

Edited: 23/11/2009 9:26am

When I start install.php and fill in all required information and click [Install SilverStripe] after a few seconds I get the following error:

Building database schema... 
[Warning] date(): 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 'Europe/Paris' for '1.0/no DST' instead
POST /silverstripe/install.php
Line 912 in C:\Inetpub\wwwroot\SilverStripe-v2.3.3\SilverStripe-v2.3.3\sapphire\core\model\DataObject.php

and in the source part the following line is colored:

912 				$this->record['Created'] = date('Y-m-d H:i:s');

and

Trace
date(Y-m-d H:i:s) 
Line 912 of DataObject.php 
DataObject->write() 
Line 934 of SiteTree.php 
SiteTree->requireDefaultRecords() 
Line 214 of DatabaseAdmin.php 
DatabaseAdmin->doBuild(1) 
Line 793 of install.php 
Installer->install(Array) 
Line 123 of install.php 

Avatar
Sean

Forum Moderator, 922 Posts

23 November 2009 at 10:04pm

Inside php.ini, you need to make sure date.timezone is filled in. By default, it is not.

e.g.

date.timezone = Pacific/Auckland

Avatar
wizzofoz

Community Member, 9 Posts

24 November 2009 at 9:05am

Edited: 24/11/2009 9:09am

OK, thank you, now I'm allmost there I think ...

My next thread: http://www.silverstripe.org/installing-silverstripe/show/274015#post274015