Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I noticed while make install nginx, it told me PCRE is not available.

I installed PCRE: yum install -y pcre

When I restarted nginx, it shows this error:

using regex ".php$" requires PCRE library in nginx.conf

I want to enable PHP-FPM. What should I do?

I am using CentOS.

share|improve this question
Did you try to install the nginx-provided RPM from That should be better than compiling it yourself, unless you have very particular requirements. You can also enable the nginx repo by following the instructions from Once that's done, you'll have nginx under yum. – cjc Mar 4 '12 at 14:58

1 Answer 1

You probably need to re run configure and then make nginx again after installing pcre.

share|improve this answer

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.