As you know, the server hosted for your web site’s time zone might not the time zone that you want as you might purchased a hosting server hosted somewhere from your location.
Hence it is important if you could define the timezone from the server setting instead of working on each of the script.
Although you set set a global value the inc file from each of your script, but isn’t it easier if you set it to your .htaccess file?
Open up your .htaccess file, enter the command as below.
SetEnv TZ location
The location indicate the timezone that you want to set, for more information on the location information, you may refer to the URL as below.
Many of the website did teach how to check HTTP Compression, what Apache module is needed, but there are less guide on how to make it done.
Today, Mick Genie will guide you how to make it done.
Firstly, you may need to compile your Apache with mod_gzip and mod_deflate (Actually Apache 1.x needed mod_gzip and Apache 2.x needed mod_deflate, hence you may compile both of them).
Once done, modify your httpd.conf and assume it is located in /usr/local/apache/conf. Add the following line to the configuration file.
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
Restart the httpd services.
service httpd restart
The above command from httpd.conf will compress all the files except the .gif, .jpe, .jpeg and .png files.