Jump to content

Issue since changing timezone in php.ini


Recommended Posts

Good morning,


I moved my WHMCS install to a new server a few weeks back, reissued the licence and all has worked as always since then. This morning in the daily Cron Job Activity email that arrived in my inbox at 9am I noticed it said it was ran at 10am.


I quickly realised it was a timezone issue and checked the php.ini - the timezone was Europe/Berlin so I changed this to Europe/London and saved. I then restarted the Apache service.


I returned back to my WHMCS and F5'd it to see if the time changed. I was logged out which I expected but now I cannot log in. Any attempt to log in simply refreshes the logon page. I've ticked and unticked "Remember me until I logout." and even clicked Login instead of pressing Enter. I've tried in IE, Firefox and Chrome, and have cleared all cookies and history. In addition I have 2 factor authentication enabled.


Has anyone came across this before? I've not tried setting the timezone back to Europe/Berlin yet as that's not the correct timezone.

Link to comment
Share on other sites

I appear to have fixed it after digging around. I changed it via PHP Configuration Editor in WHM. When scrolling back through I noticed under session.save_path it said "/tmp instead of /tmp - no idea how that had happened as I had went nowhere near it- but I can now log in and the correct time shows.

Link to comment
Share on other sites

  • WHMCS Technical Analyst II
there is also the option to change the timezone used by whmcs in its configuration file.



Hi Brian, just to correct what you said, this document describes how to change the PHP configuration, not the configuration.php file used by WHMCS and we do not recommend editing it to do so.

Link to comment
Share on other sites

apologies for that... pasted the wrong link without completely reading the page. :roll:


anyway, you can add one line to your WHMCS configuration.php file to change the timezone used by whmcs.



i've done this as WHMCS time was one hour less than the server time, but with this added to my whmcs configuration file, the two times now match... though I don't know if i'll have to remove it when the clocks change later this month.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated