Quantcast
Channel: Mac Wilson – Web Hosting KB from eUKhost
Viewing all articles
Browse latest Browse all 10

Setting Up Time Zone for a Specific Domain via Command Line

$
0
0

In order to setup a different time zone for a particular domain, you need to specify the time zone in the file called “php.ini”. If you are hosting a website on server with “suphp” as PHP handler, you can specify the time zone in php.ini file on the server. Follow the below steps to set time zone for a particular domain on server.

Step 1: Login to your server using your root login credentials.

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

php -i | grep php.ini

Step 3: Once you get the file, edit it using the vi editor “vi command” and set the following parameters.

date.timezone=”Europe/London”

Step 4: Now save the file.

That’s it!

Dedicated Server Hosting


Viewing all articles
Browse latest Browse all 10

Trending Articles