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
+6.6k Golang : Pat multiplexer routing example
+5.5k Golang : Fix opencv.LoadHaarClassifierCascade The node does not represent a user object error
+11.7k Golang : Sort and reverse sort a slice of runes
+7.7k Golang : Handle Palindrome string with case sensitivity and unicode
+9.5k Golang : List available AWS regions
+5.1k PHP : Hide PHP version information from curl
+12.2k Golang : "https://" not allowed in import path
+14.6k Golang : Submit web forms without browser by http.PostForm example
+11.7k Golang : Convert decimal number(integer) to IPv4 address
+32.4k Golang : Regular Expression for alphanumeric and underscore
+15.2k Golang : Intercept Ctrl-C interrupt or kill signal and determine the signal type
+7k Golang : File system scanning