nginx: [emerg] unknown directive "passenger_enabled"
In my opinion, nginx in a way is better than Apache. It has low memory footprint and configuring it was easier and in straightforward manner. I was helping out a friend who is a Ruby On Rails developer migrating his Apache based server to Nginx couple of days back. When he tried to start nginx server, he got these error messages :
nginx: [emerg] unknown directive "passenger_enabled" in /etc/nginx/conf.d/default.conf:6
nginx: configuration file /etc/nginx/nginx.conf test failed
Upon further investigation, the error messages indicate that nginx was compiled without Phusion Passenger support.
To fix this :
sudo gem install passenger
cd /var/lib/gems/1.9.1/gems/passenger-2.2.11/bin
sudo ./passenger-install-nginx-module
restart nginx and the error message is gone.
References :
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+8k Golang : Regular Expression find string example
+7.7k Golang : Rename part of filename
+6.8k Golang : How to determine if request or crawl is from Google robots
+30.1k Golang : Record voice(audio) from microphone to .WAV file
+10.1k Golang : Convert octal value to string to deal with leading zero problem
+43.7k Golang : Convert []byte to image
+8.2k Setting $GOPATH environment variable for Unix/Linux and Windows
+4.2k Javascript : Empty an array example
+46.5k Golang : Read tab delimited file with encoding/csv package
+17.6k Golang : Multi threading or run two processes or more example
+9.6k Mac OSX : Get a process/daemon status information
+6.2k Golang : Missing Subversion command