Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com May 31 '12 at 8:40

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

2 Answers 2

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

 
discard

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