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.

  • 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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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