1

I am following this tutorial and got an error with perl_modules:

root@ns516302:~# service nginx restart
Restarting nginx: nginx: [emerg] unknown directive "perl_modules" in /etc/nginx/sites-enabled/default:1
nginx: configuration file /etc/nginx/nginx.conf test failed
root@ns516302:~#

How do I install perl_module into nginx?

There is not much info on this link.

6
  • How did you install nginx in the first place? Commented Jun 19, 2015 at 7:06
  • apt-get install nginx -y Commented Jun 19, 2015 at 7:19
  • 1
    There are several nginx-* packages. Default one (nginx-core) doesn't contain perl. You should install nginx-extras package Commented Jun 19, 2015 at 7:23
  • Alexey, thank you for getting back to me. I have install the nginx-extas package. Here is the new output " Restarting nginx: nginx: [alert] version 1.2.1 of nginx.pm is required, but 1.4.4 was found nginx: configuration file /etc/nginx/nginx.conf test failed " Commented Jun 19, 2015 at 7:24
  • Probably it's in your perl module. Commented Jun 19, 2015 at 8:22

2 Answers 2

2

Try this:

sudo apt-get install nginx-extras
Sign up to request clarification or add additional context in comments.

Comments

1

Recompile nginx with the --with-http_perl_module option to ./configure.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.