Problems installing SilverStripe

I’m trying to install SilverStripe to my PC and I’m having a problem (I’ve posted this on their dedicated forum but there’s only me and one other person logged on so I might be waiting a while for an answer!)

I’ve installed Apache, PHP5 and MySQL seperately and used them for something else so I know they work.

When the script runs to install it, I get this in return:

[FONT=“Courier New”][Warning] strtotime() [function.strtotime]: 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/London’ for ‘1.0/DST’ instead
POST /silverstripe/install.php

Line 298 in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\silverstripe\sapphire\core\HTTP.php

Source

289
290 /**
291 * Set the maximum age of this page in web caches, in seconds
292 */
293 static function set_cache_age($age) {
294 self::$cache_age = $age;
295 }
296
297 static function register_modification_date($dateString) {
298 $timestamp = strtotime($dateString);
299 if($timestamp > self::$modification_date)
300 self::$modification_date = $timestamp;
301 }
302
303 static function register_modification_timestamp($timestamp) {
304 if($timestamp > self::$modification_date)
Trace

strtotime(2010-04-16 19:45:43)
Line 298 of HTTP.php
HTTP::register_modification_date(2010-04-16 19:45:43)
Line 206 of DataObject.php
DataObject->__construct(Array)
Line 2538 of DataObject.php
DataObject->instance_get_one(URLSegment = ‘home’,)
Line 2468 of DataObject.php
DataObject::get_one(SiteTree,URLSegment = ‘home’)
Line 927 of SiteTree.php
SiteTree->requireDefaultRecords()
Line 212 of DatabaseAdmin.php
DatabaseAdmin->doBuild(1)
Line 793 of install.php
Installer->install(Array)
Line 123 of install.php
[/FONT]
I suspect this might be something to do with the Apache set-up, but does anybody have any ideas what?

Hi there,

I’m not sure if this is any help at all. But if you are installing the software onto your client computer why not use a program like Xampp. This will set up the LAMP (minus the Linux) server for testing on.

I’ve just installed SilverStripe using this method and have had no problems.

Even with a bundle you’re still likely going to need to mess with the timezone to stop that warning. If it was only important in a limited number of places you could get away with using date_default_timezone_set(), but as this seems to be affecting the install IMHO you should edit your php.ini file. Probably in your Apache/bin folder.

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
;date.timezone =

Just add the appropriate string and uncomment the line by removing the leading “;” then restart the server.