Your Webhosting Questions
Answered by the Webhosting Experts
Tags
...
...

How to set up Time Zone via command line on your server?

For setting up different time zone for a particular domain, you need to specify the time zone in the file called “php.ini”. If you have a “suphp” server with PHP handler, you can specify the time zone in php.ini file on the server.

Refer the below steps to set time zone for a particular domain on server.

Step 1: Login as root user

Step 2: Execute the following command to find php.ini file on the server.

php -i | grep php.ini

Step 3: Edit it using the vi editor “vi command” and set the following parameters.

date.timezone=”Europe/London”

Step 4: Now save the file.

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: [email protected]. We are also available to you through our phone and live chat system 24/7/365.

Tags +
...