Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to setup a PHP-FPM Chroot jail on a new CentOS 6.3 box. I can get the chroot to work fine, in the sense that I can get php scripts to respond and echo things out. But, every time I use the date function, I get an error saying the timezone db is corrupt.

All I've done is changed the value of the chroot directive in php-fpm conf, to be the document root as specified in nginx.

This is the test script:

this is the nginx vhost

Here's the output I get when I go to localhost

share|improve this question
up vote 4 down vote accepted

do you have copy of TZ stuff inside the chroot folder ?








also maybe add

add TZ=CST (or whatever your TZ is) in the nginx config details here:

share|improve this answer
Thanks! putting the /etc/localtime and zoneinfo worked.. – Vid Luther Aug 6 '12 at 14:48
copy? isn't a mount better? – the_nuts Mar 26 at 17:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.