Go Back   Cloud Computing > Support > Tutorials and Documentation
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-15-11, 01:38
BOD Member
 
Join Date: Jan 2011
Posts: 182
Default Set custom timezone

Hi!
I have two website. How can I set custom timezone for those particular website?
Reply With Quote
  #2 (permalink)  
Old 06-15-11, 05:00
BOD Member
 
Join Date: Jun 2010
Posts: 175
Default

In order to set custom timezone just follow the below given steps :

connect server with SSH
Copy and paste php.ini to users home directory(public_html)
edit php.ini and paste/type the entry as below :
date.timezone ="Asia/Tehran"
then, edit the .htaccess and set below entry :
SetEnv PHPRC "/home/username/public_html/php.ini"

That's it....
__________________
Carol.P
Reply With Quote
  #3 (permalink)  
Old 06-29-11, 12:04
BOD Member
 
Join Date: Apr 2011
Posts: 42
Default

Thank you for the valuable information carol.

We will now see how to copy php.ini to your public_html
You will have first fire the command
Quote:
php -i | grep php.ini
to check the path of your php.ini the above command will give you the output like:

Quote:
php -i | grep php.ini
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
OR

Quote:
php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
Then copy that to your public_html like:

If you are already into your public_html directory then fire the below command:

Quote:
cp /usr/local/lib/php.ini .

or

cp /etc/php.ini .
If you are out side your public_html then fire the below command:

Quote:
cp /usr/local/lib/php.ini /home/user/public_html

or

cp /etc/php.ini /home/user/public_html
That's it!!
Now the php.ini is copied under your public_html and now you can proceed with the steps provided by carol.
Reply With Quote
  #4 (permalink)  
Old 06-29-11, 14:32
BOD Member
 
Join Date: Jun 2011
Posts: 91
Default

@Carol.P @valentine

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 00:00.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.