# Odd 500 Internal Server Error with a Wordpress file (NGINX & PHP-FPM)

**URL:** <https://www.ruby-forum.com/t/odd-500-internal-server-error-with-a-wordpress-file-nginx-php-fpm/221916>\
**Category:** NGINX\
**Created:** [August 4, 2012, 4:37pm UTC](https://www.ruby-forum.com/t/odd-500-internal-server-error-with-a-wordpress-file-nginx-php-fpm/221916 "2012-08-04T16:37:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [August 4, 2012, 4:37pm UTC](https://www.ruby-forum.com/t/odd-500-internal-server-error-with-a-wordpress-file-nginx-php-fpm/221916/1 "2012-08-04T16:37:05Z")

</div>

Hey folks. I’d appreciate some help with this bit of wierdness: Fresh  
install of wordpress downloaded yesterday, running on nginx with a  
fastcgi\_pass to php-fpm. The install went flawlessly, and most  
everything seems to work correctly, except that when I click on the  
“Posts” button in the admin interface (/wp-admin/edit.php), I get a  
mostly blank screen that says “Invalid Post Type”. Like I said, this is  
a completely fresh install, so I don’t have ANY custom page types or  
anything, it’s perfectly default right now. While I’ve performed plenty  
of wordpress installs without issue, I’m a relative neophyte to nginx  
anf php-fpm, and am sure something’s gone wrong somehow on the backend.  
I do notice that php-fpm is logging a 500 status code when I hit that  
page, but can’t seem to get any meaninful error message in the browser  
telling me exactly what went wrong. Nginx is connecting to php-fpm via  
fastcgi\_pass to a unix domain socket. I’ve made sure that php-fpm and  
nginx are both running as the same user, and that the directory being  
served from has appropriate permissions. phpinfo() returns flawlessly  
on a test.php page. Any ideas from those more experienced than me?

Posted at Nginx Forum:

> **[Odd 500 Internal Server Error with a Wordpress file (NGINX & PHP-FPM)](https://forum.nginx.org/read.php?2,229298,229298#msg-229298)**
>
> Hey folks. I'd appreciate some help with this bit of wierdness: Fresh install of wordpress downloaded yesterday, running on nginx with a fastcgi\_pass to php-fpm. The install went flawlessly, and most everything seems to work correctly, except that...

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 28, 2012, 2:59pm UTC](https://www.ruby-forum.com/t/odd-500-internal-server-error-with-a-wordpress-file-nginx-php-fpm/221916/2 "2012-08-28T14:59:31Z")

</div>

I ran into the same problem (my Pages and Media lists were also empty,  
though the interface still showed the counts of each). I was running  
Wordpress in a subdirectory for testing and had copied a config from a  
tutorial for that particular setup. This line turned out to be the  
culprit:

fastcgi\_split\_path\_info ^(/wordpress)(/.\*)$;

I removed it with no ill effects that I can see so far and the admin  
pages  
now work as expected.

Posted at Nginx Forum:

> **[Re: Odd 500 Internal Server Error with a Wordpress file (NGINX & PHP-FPM)](https://forum.nginx.org/read.php?2,229298,230201#msg-230201)**
>
> Hey folks. I'd appreciate some help with this bit of wierdness: Fresh install of wordpress downloaded yesterday, running on nginx with a fastcgi\_pass to php-fpm. The install went flawlessly, and most everything seems to work correctly, except that...
