passenger_enabled is an unknown directive

1,742 views
Skip to first unread message

alec

unread,
Jul 1, 2009, 8:12:57 PM7/1/09
to Phusion Passenger Discussions
Hello. I had a pre-existing installation of nginx that I have been
learning about, and wanted to install passenger over the top of it.
When I add a line to enable passenger, and start the nginx server I
receive the following error message:

Starting nginx: 2009/07/01 23:45:41 [emerg] 26871#0: unknown directive
"passenger_enabled" in /etc/nginx/sites-enabled/BLAHBLAHBLAH:13

It's going to be tough to write it up as a bug because I don't want to
spend the time recreating conditions to repeat on another server, but
does anyone have a clue as to why this problem might occur? The other
passenger_... directives in the nginx.conf file appear to be correct,
and accepted.

The result is that while the passenger_enabled on command is set, I
cannot run nginx. As soon as I remove it, it works fine.

The offending configuration file looks like this:

server
{
listen 80;
server_name www.BLAHBLAHBLAH.com;
rewrite ^/(.*) http://BLAHBLAHBLAH.com/$1 permanent;
}

server
{
listen 80;
server_name test.BLAHBLAHBLAH.com;
root /home/alec/web/BLAHBLAHBLAH.com/test/public;
# passenger_enabled on;

access_log /home/alec/web/BLAHBLAHBLAH.com/log/testaccess.log;
error_log /home/alec/web/BLAHBLAHBLAH.com/log/testerror.log;

location /
{
index index.html;
}

}

server
{
listen 80;
server_name BLAHBLAHBLAH.com;

access_log /home/alec/web/BLAHBLAHBLAH.com/log/access.log;
error_log /home/alec/web/BLAHBLAHBLAH.com/log/error.log;

location /
{
root /home/alec/web/BLAHBLAHBLAH.com/main/public;
index index.html;
}
}

Hongli Lai

unread,
Jul 2, 2009, 3:09:52 AM7/2/09
to phusion-...@googlegroups.com
On Thu, Jul 2, 2009 at 2:12 AM, alec<ale...@googlemail.com> wrote:
>
> Hello. I had a pre-existing installation of nginx that I have been
> learning about, and wanted to install passenger over the top of it.
> When I add a line to enable passenger, and start the nginx server I
> receive the following error message:
>
> Starting nginx: 2009/07/01 23:45:41 [emerg] 26871#0: unknown directive
> "passenger_enabled" in /etc/nginx/sites-enabled/BLAHBLAHBLAH:13
>
> It's going to be tough to write it up as a bug because I don't want to
> spend the time recreating conditions to repeat on another server, but
> does anyone have a clue as to why this problem might occur? The other
> passenger_... directives in the nginx.conf file appear to be correct,
> and accepted.
>
> The result is that while the passenger_enabled on command is set, I
> cannot run nginx. As soon as I remove it, it works fine.

This just means that Nginx isn't compiled with Phusion Passenger
support. You probably ended up having multiple Nginx installations,
and your Nginx startup script starts the one that doesn't have Phusion
Passenger support.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Reply all
Reply to author
Forward
0 new messages