# Perl\_modules

**URL:** <https://www.ruby-forum.com/t/perl-modules/221649>\
**Category:** NGINX\
**Created:** [July 24, 2012, 9:57am UTC](https://www.ruby-forum.com/t/perl-modules/221649 "2012-07-24T09:57:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [July 24, 2012, 9:57am UTC](https://www.ruby-forum.com/t/perl-modules/221649/1 "2012-07-24T09:57:00Z")

</div>

I compiled nginx with perl ( --with-http\_perl\_module ),

…  
checking for perl

- perl version: v5.8.8 built for i386-linux-thread-multi
- perl interpreter multiplicity found  
…

installed it , and then i get

[root@host nginx-1.2.2]# nginx -t  
nginx: [emerg] unknown directive “perl\_modules” in  
/vps\_core/nginx/conf/nginx.conf:9  
nginx: configuration file /vps\_core/nginx/conf/nginx.conf test failed

[root@host nginx-1.2.2]# nginx -V  
nginx version: nginx/1.2.2  
configure arguments: --prefix=/vps\_core/nginx --with-http\_perl\_module

Posted at Nginx Forum:

> **[perl\_modules](https://forum.nginx.org/read.php?2,228924,228924#msg-228924)**
>
> I compiled nginx with perl ( --with-http\_perl\_module ), ............ checking for perl + perl version: v5.8.8 built for i386-linux-thread-multi + perl interpreter multiplicity found .............................. installed it , and then i

---

<div class="post-metadata">

**Author:** ![dagr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bb73d2/32.png) [@dagr](https://www.ruby-forum.com/u/dagr)\
**Post date:** [July 24, 2012, 12:49pm UTC](https://www.ruby-forum.com/t/perl-modules/221649/2 "2012-07-24T12:49:58Z")

</div>

Hello!

On Tue, Jul 24, 2012 at 03:56:32AM -0400, dagr wrote:

> [root@host nginx-1.2.2]# nginx -t  
> nginx: [emerg] unknown directive “perl\_modules” in  
> /vps\_core/nginx/conf/nginx.conf:9  
> nginx: configuration file /vps\_core/nginx/conf/nginx.conf test failed
> 
> [root@host nginx-1.2.2]# nginx -V  
> nginx version: nginx/1.2.2  
> configure arguments: --prefix=/vps\_core/nginx --with-http\_perl\_module

The “perl\_modules” directive is only allowed at http level. See  
[Module ngx\_http\_perl\_module](http://nginx.org/r/perl_modules).

Maxim D.

---

<div class="post-metadata">

**Author:** ![dagr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bb73d2/32.png) [@dagr](https://www.ruby-forum.com/u/dagr)\
**Post date:** [July 24, 2012, 1:01pm UTC](https://www.ruby-forum.com/t/perl-modules/221649/3 "2012-07-24T13:01:04Z")

</div>

Now i see - its because i placed it on top level - now it works.

But actually this error message should be changed.  
When i place directive in wrong place (for example limit\_zone inside  
location. ) - I used to get messages “this directive is not allowed  
here” - not an “uknown directive”.

Posted at Nginx Forum:

> **[Re: perl\_modules](https://forum.nginx.org/read.php?2,228924,228929#msg-228929)**
>
> I compiled nginx with perl ( --with-http\_perl\_module ), ............ checking for perl + perl version: v5.8.8 built for i386-linux-thread-multi + perl interpreter multiplicity found .............................. installed it , and then i
