I know this particular question has been asked many times but i don't see any solving answers.
I have a mod_proxy_fcgi + php5-fpm + apache 2.4 configured on UBUNTU 14 its working perfectly fine.
i wanted to make php-fpm chrooted (So users wont access other users resource in shared env) if config:
prefix = /var/www/html/example.com/public_html/
chroot = $prefix
chdir = /
After config: if i access php script in browser i get 404 error "File not found"
If i COMMENT this above chroot config then php works again without any errors!