How to change timezone in linux

Its very simple to change the server timezone. All server timezones are located in ”


And the server will take the time zone from the file "/etc/localtime". This file is just a symlink to

Suppose if we need to change the server time to EST, then follow the below steps. 

rm -f /etc/localtime
ln -s /usr/share/zoneinfo/EST /etc/localtime

Htscanner Install for enabling php value in .htaccess in CGI/FCGI

Allow to use htaccess-like file to configure PHP in a CGI/FCGI environment.

tar -zxf htscanner-1.0.0.tgz
cd htscanner-1.0.0
./configure –enable-htscanner –with-php-config=/usr/bin/php-config
make install

Collect the extension_di from the “make install” output.

Add in php.ini

extension_dir = “/usr/lib/php/extensions/no-debug-non-zts-20060613/”
extension = “”
config_file = “.htaccess”
default_docroot = “/”
default_ttl = 300
stop_on_error = 0

Add the following line in a .htaccess and see if it works in a phpinfo page. Keep “Off” or “On” as needed.

php_value register_globals Off


<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
php_value memory_limit 64M

You can avoid adding ifmodule tag in .htaccess by enable htscanner module for apache

  • Go to the unzipped package location
  • Make sure apache has mod_so
   /usr/local/apache/bin/httpd -l | grep mod_so.c
  • Compile the module by
   /usr/local/apache/bin/apxs -c -a -i mod_htscanner2.c
  • Restart apache
   /usr/local/apache/bin/apachectl configtest
   /usr/local/apache/bin/apachectl restart
   /usr/local/cpanel/bin/apache_conf_distiller --update
    grep /usr/local/apache/conf/httpd.conf
    LoadModule htscanner_module   modules/