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.4k Golang : Not able to grep log.Println() output
+4.8k Unix/Linux : Get reboot history or check when was the last reboot date
+11.3k Golang : Arithmetic operation with numerical slices or arrays example
+12.3k Golang : Get dimension(width and height) of image file
+16.1k Golang : Multi threading or run two processes or more example
+25.7k Golang : Find files by name - cross platform example
+11.2k Golang : Listen and Serve on sub domain example
+7.2k Your page has meta tags in the body instead of the head
+21.5k Golang : Get ASCII code from a key press(cross-platform) example
+8.2k Random number generation with crypto/rand in Go
+8k Golang : Serving HTTP and Websocket from different ports in a program example
+6.6k Golang : Shuffle strings array