The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What is this ?

Discussion in 'General Discussion' started by NNT_, Feb 27, 2011.

  1. NNT_

    NNT_ Member

    Joined:
    Jan 29, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hi, few days ago. My hosting site, clients always meet this error:

    I don't know what is this, i tried to find date() function in PHP Configure but i can't. Someone told me that caused by Plugins, so here is my current plugin on servers:

    Addon Script Manager
    ConfigServer Mail Manage
    ConfigServer Mail Queues
    ConfigServer Security&Firewall
    Configure ClamAV Scanner
    Game Server Management
    LiteSpeed Web Server
    Mod Security
    Munin Service Monitor
    Setup Spamd Startup Configuration
    Softaculous - Instant Installs
    Website Maintenance Service by Edit.com

    And my current PHP version is 5.3.4

    What do you think about this ??? I need some help :(
     
  2. NNT_

    NNT_ Member

    Joined:
    Jan 29, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Please help :(
     
  3. Oldiesmann

    Oldiesmann Active Member

    Joined:
    Dec 30, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cincinnati, Ohio, USA
    Go into WHM and select the correct timezone under Server Time. PHP is saying that it doesn't recognize the timezone of "MSK/3.0/No DST" (which isn't a valid timezone anyway), and/or there is no default timezone setting in the PHP configuration.
     
  4. NNT_

    NNT_ Member

    Joined:
    Jan 29, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Thanks, so which i should change it to ? Mine is international hosting.

    Btw, i tried to change it to UTC, and i meet this:

     
  5. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Phoenix, AZ
    cPanel Access Level:
    DataCenter Provider
    Set the timezone in a configuration file the script uses or perhaps on the file that is throwing the error:

    date_default_timezone_set("UTC");

    or whatever timezone you want to set it to.
     
  6. romj

    romj Registered

    Joined:
    Oct 9, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    In answer to the original post, there is an appropriate setting which is:

    date.timezone
    in WHM, PHP configuration editor, advanced settings

    However, good luck in updating the default as in my case cPanel, I guess, has added in an extra line at the very bottom of the PHP.ini file (line number 1633) which reads:

    date.timezone="UTC"

    After updating via the configuration editor the date.time zone setting, I can see that the PHP.ini file reads the correct time zone setting that I want in the correct place (around line 588), but on restarting Apache PHPinfo still shows date.timezone set to "UTC" (with coordinates for the middle of Israel). Clearly, the last line is overwriting the setting earlier in the PHP.ini file.

    One could go in and take out the bottom line, but this is not a good idea for maintainability using the cPanel interface.

    Or, as already mentioned, you can add extra code in your scripts to set the default. Which is unnecessary extra work if the scripts will remain on a server controlled by you.

    I cannot think of any reason why the new configurability has been removed.

    For info:
    - WHM, server time is correctly set, and synchronised, in my case.
    - My local xampp setup works as expected

    Perhaps cPanel could explain how we can set the default time zone using their interface?
     
  7. Oldiesmann

    Oldiesmann Active Member

    Joined:
    Dec 30, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cincinnati, Ohio, USA
    You need to talk to your host then. The server is setting weird values for the timezone.
     
  8. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Do you have a php.ini file on your account? If you are using suPHP and have your own php.ini file on the account, you can add the timezone yourself by editing your php.ini file and putting that previously provided entry:

    Code:
    date.timezone="UTC"
     
  9. NNT_

    NNT_ Member

    Joined:
    Jan 29, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1

    I don't know, i can't edit the php.ini on SSH.


    I am the hosting provider.

    I can't find date.timezone in WHM, i have root access to the WHM only. Not SSH :(

    Do you have any solutions for this ?
     

    Attached Files:

  10. MattLee

    MattLee BANNED

    Joined:
    Aug 26, 2009
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

    In general, if you are the hosting provider, I'd recommend attempting to get SSH access from your server provider as some fixes are going to be beyond the reach of even root WHM.

    Without the ability to look at your server directly, we'd be unable to troubleshoot this.

    I'd recommend going ahead and submitting a support ticket with our support desk after you get access to your server via SSH so that we can assist you with this further.

    Where should I go for support? - cPanel Inc.
     
  11. NNT_

    NNT_ Member

    Joined:
    Jan 29, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Thanks you. I'll do it.

    And thanks to all for your helps :)
     

Share This Page