Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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
1  
Did you try to install the nginx-provided RPM from nginx.org/packages/centos/6/i386/RPMS? 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 nginx.org/en/download.html. Once that's done, you'll have nginx under yum. –  cjc Mar 4 '12 at 14:58
add comment

1 Answer

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

share|improve this answer
add comment

Your Answer

 
discard

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.