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 have been searching this for a while, but fail to find an up-to-date guide of installing the newest version of nginx and php on a centos system. Any help is appreciated. Thanks!

share|improve this question

migrated from May 31 '12 at 8:40

This question came from our site for professional and enthusiast programmers.

It's pretty straight forward.

Add the repo for nginx, yum install nginx Then install php, php-cli, spawn-fcgi or php-fpm (there might be one or two other you need to do, but google will have them).

Then just configure nginx to use fcgi for the php and you are good to go.

I did this just last week and it was pretty painless. I dont have the links handy though, but I just googled and had luck.

share|improve this answer

Install php, php-cli, nginx and spawn-fcgi from your repository. I did this a little while ago on a Debian based server. I used these instructions that are specific to Ubuntu, but gave me enough information to get up and running.

After some quick searching I found instructions specific to CentOS as well.

share|improve this answer

Your Answer


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