author avatar
Question
2025/03/28
check mark icon Answered

How to change the time in my cpanel?

I’m trying to change the time or time zone settings in my cPanel account because my website is displaying the incorrect time. Could you please let me know where I can find this option in cPanel, and if there’s anything else I need to configure to make sure the correct time is reflected across my site, email, and logs?

user avatar
3 Min
Answer

Here’s how to change the cPanel time, but you should keep in mind this first:

cPanel users usually cannot change the server time directly unless they have root (admin) access to WHM.

If you’re a regular cPanel user (shared hosting, etc.):

You can’t change the server time yourself, but you can:

1. Set the correct time zone in your PHP scripts (like WordPress, etc.).

2. Use this in ‘.htaccess’ or ‘php.ini’:

ini

date.timezone = "America/New_York"  ; or your correct time zone

3. Or add this in PHP code:

php

date_default_timezone_set('America/New_York');

If you have root access (VPS or dedicated server):

You can change the server time from WHM (Web Host Manager):

1. Log in to WHM (not cPanel).

2. Go to “Server Configuration” > “Server Time”.

3. Select your correct time zone from the dropdown.

4. Click Change TimeZone” and confirm.

Conclusion

If you’re on shared hosting and can’t access certain settings, consider upgrading to a VPS or dedicated server where you have full control over your environment—including time configurations, performance tuning, and security options.

🔗 Eldernode’s VPS plan now

If you have any questions, you can ask
4.5 out of 5 votes
Leave a Reply

Full Name*
Email*
Comment *

Calculate the value of 7 + 5 :

Save my name, email, and website in this browser for the next time I comment.
Recent Replies
Show More

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day