Synching Apache and JBoss Timezones
We've had a couple customers recently ask us how to synch the timezones for Apache web server and JBoss Application Server.
The question goes something like this:
I have servers living in Arizona. Our Linux team has set the native time to AZ. I need to set the apache and JBoss to CT for testing. How can this be done?
This question has two answers:
1. Apache uses the operating systems TZ variable to set the timestamp in the log files. Unless you are using any cgi scripts like php or perl on the server you can't change the Apaches TZ. If you have php you would change the TZ in php.ini and perl in the perl.conf but if Apache is just handling static files or it is a mod_jk/proxy server you can't change the apaches TZ unless you change the servers TZ.
2. JBoss TZ is different. In your JBoss startup script make sure you xport the TZ variable like so:
export TZ='CST'
If you want to do this for testing purposes you can just execute the export before you start JBoss.



