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
+18.8k Golang : Delete duplicate items from a slice/array
+31.7k Golang : Get local IP and MAC address
+5.2k Responsive Google Adsense
+9.5k Golang : Scramble and unscramble text message by randomly replacing words
+7.2k CloudFlare : Another way to get visitor's real IP address
+9.3k Golang : How to get ECDSA curve and parameters data?
+6.9k Mac/Linux/Windows : Get CPU information from command line
+14.2k Golang : Fix image: unknown format error
+6.6k Golang : Warp text string by number of characters or runes example
+10.9k Golang : Command line file upload program to server example
+9.1k Golang : io.Reader causing panic: runtime error: invalid memory address or nil pointer dereference
+32k Golang : Convert an image file to []byte