Getting HTTP 500 Error

I’m trying to setup Nginx+phpFPM for first time (php5.2) and can’t get
it
working. Base system is FreeBSD 9.1.
So my main configs:

nginx.conf - user www www;worker_processes 2;error_log /var/log/nginx/error.log crit;pi - Pastebin.com
php-fpm.conf - <?xml version="1.0" ?><!-- $FreeBSD: ports/lang/php52/files/php-fpm.conf.sampl - Pastebin.com
vhost config - server { listen 80; server_name www.smak.org; rewrite - Pastebin.com

Nginx started and working as i may see output from phpinfo(), but if i
put
something comlex, eg. CMS like Drupal, WP, Joomla it generates HTTP 500
error.

Also I can’t see any php errors in logs despite they are defined in
php-fpm.conf

Posted at Nginx Forum: