Jump to:

4945 Posts in 17814 Topics by 1494 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » date.timezone option in php.ini must be set in PHP 5.3.0+

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

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

Page: 1 2 3
Go to End
Author Topic: 65119 Views
  • jamiecam43
    Avatar
    Community Member
    1 Post

    date.timezone option in php.ini must be set in PHP 5.3.0+ Link to this post

    I am beyond frustrated. I have confirmed with PHPinfo which php.ini file is being loaded, and double checked that it has the date.timezone set to "Canada/Eastern". other posts online seem to indicate that the quotations shouldn't be there so i delete them, save the file, restart the server and try to install again but it continues to fail. on further investigation the quotations have returned every time i restart the server.

    i am using a Mac so i tried running a command in terminal to see what value date.timezone contained and it says no value. i am new to this sort of thing and very confused. can anybody help?

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: date.timezone option in php.ini must be set in PHP 5.3.0+ Link to this post

    Are you using the default PHP that comes with Mac OS X? I haven't seen this when using PHP provided by MacPorts.

  • seidlitz
    Avatar
    Community Member
    1 Post

    Re: date.timezone option in php.ini must be set in PHP 5.3.0+ Link to this post

    Hi Jamie,

    I ran into the same issue. Tried using "Canada/Pacific" and got the same error message as you. Looks like PHP is not aware of Canada ;-) Changed my timezone to "America/Vancouver", restarted Apache and it cleared the error.

    Check this page for the list of North American timezones recognized by PHP and pick something close to you e.g. "America/Toronto"

    Cheers,

    Alex

  • rjmau
    Avatar
    Community Member
    2 Posts

    Re: date.timezone option in php.ini must be set in PHP 5.3.0+ Link to this post

    i have the same problem. Timezone for PHP is not set. Please set "date.timezone" option in php.ini.
    *
    date.timezone = Asia/Manila
    *
    this is my code. i search it through the web. and still the same error occurs please help me with this problem
    i've been finding a way for quite some time now. any idea how to fix this?

    i've tried adding double quotes, single quote and even no quote. so im really confused. please help me.
    thanks in advance guys =)

  • rjmau
    Avatar
    Community Member
    2 Posts

    Re: date.timezone option in php.ini must be set in PHP 5.3.0+ Link to this post

    here is a snap shot of my problem. i attached the file

    Attached Files
  • prawnstar
    Avatar
    Community Member
    116 Posts

    Re: date.timezone option in php.ini must be set in PHP 5.3.0+ Link to this post

    I have the same issue and I'm on an Ubuntu machine.

    php.ini

    ; http://php.net/date.timezone
    date.timezone = America/Los_Angeles

    Chris.b

  • MrMuddy
    Avatar
    Community Member
    13 Posts

    Re: date.timezone option in php.ini must be set in PHP 5.3.0+ Link to this post

    Weirdly, I've just run into the same problem. On a PHP 5.2 server, I have many SS installations with no issues.. On a different machine (PHP 5.3.2-1ubuntu4.7) I get the same error as others on the installation screen.

    My timezone is set as Europe/London in php.ini and this is confirmed by phpinfo()

    Any ideas appreciated !

  • Bruce B
    Avatar
    Community Member
    145 Posts

    Re: date.timezone option in php.ini must be set in PHP 5.3.0+ Link to this post

    I just hit this error on a new install of 2.4.5. I'm running a Mac using the native Apache/PHP. My timezone was set to Australia/ACT. This is a valid entry and confirmed in phpinfo(). I changed it to Australia/Melbourne and SS is now happy to proceed.

    It may be worth changing the timezone and changing back to see if that fixes the problem.

    65119 Views
Page: 1 2 3
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.