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.

  • 45 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Gerelateerde artikelen

Can I use my domain name or must I use my IP address as the hostname for FTP?

Using your IP address (192.168.22.22  is an example IP address) is the preferred entry for...

Can you transfer my sites from my current host to my new VPS?

Yes. We will transfer all of your sites free* of charge and will assure that you experience no or...

Do you allow MP3 files? Do you allow streaming of videos?

Yes we do with our special plans at http://hostripples.in/avs-hosting.php

Do you support Cold Fusion?

We do not support or Cold Fusion on our shared hosting servers, however you are more than welcome...