# Getting HTTP 500 Error

**URL:** <https://www.ruby-forum.com/t/getting-http-500-error/227135>\
**Category:** NGINX\
**Created:** [March 5, 2013, 9:22am UTC](https://www.ruby-forum.com/t/getting-http-500-error/227135 "2013-03-05T09:22:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Demontager](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ba8739/32.png) [@Demontager](https://www.ruby-forum.com/u/Demontager)\
**Post date:** [March 5, 2013, 9:22am UTC](https://www.ruby-forum.com/t/getting-http-500-error/227135/1 "2013-03-05T09:22:35Z")

</div>

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](http://pastebin.com/KwhHr0NK)  
php-fpm.conf - [\<?xml version="1.0" ?\>\<!-- $FreeBSD: ports/lang/php52/files/php-fpm.conf.sampl - Pastebin.com](http://pastebin.com/KQBwp3KL)  
vhost config - [server { listen 80; server\_name www.smak.org; rewrite - Pastebin.com](http://pastebin.com/qyFzc9Xa)

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:

> **[Getting HTTP 500 Error](https://forum.nginx.org/read.php?2,236937,236937#msg-236937)**
>
> 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 - http://pastebin.com/KwhHr0NK php-fpm.conf - http://pastebin.com/KQBwp3KL vhost config -...
