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 currently have nginx installed and running on a CentOS server.

It's all good.

Now I'm trying to enable PHP but can't seem to find any clear tutorial (even nginx's docs) that will explain it straightly.

I understood so far that it's composed of two components: PHP-CGI & FCGI.

What commands simply install it? Preferbly using "yum".

Also, I want that nginx will pass data to PHP through a unix socket file, and not through TCP - performance wise.

This nginx's doc page jumps, and is not suitable for someone who just starting to get to know these stuff, as myself.

I thank you in advance!

share|improve this question
up vote 1 down vote accepted

maybe you find your answer here : CentOS 5.5 + PHP 5.3.3 + PHP-FPM + APC + nginx (yum RPMs)

share|improve this answer
Excellent link! Thank you!! This guide though, doesn't get you MySQL support for PHP. In order to have it you need to include the "php53u-mysql" as well, in the "yum install" command. – Poni Nov 12 '11 at 15:14
Hi Behrooz - on this site we frown upon answers that only serve a single link, as when the link goes dead in the future, the answer becomes useless. Could you at least elaborate on the basic steps that are contained in the tutorial? – Mark Henderson Nov 12 '11 at 19:39
Dear Mark , I'm new to this site as you can see my profile. Okay , I will do it. thank you – Behrooz A Nov 12 '11 at 20:14

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.