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
+17k Golang : Put UTF8 text on OpenCV video capture image frame
+16.7k Golang : Upload/Receive file progress indicator
+9.2k Golang : Compare files modify date example
+18k Golang : How to make function callback or pass value from function as parameter?
+21.8k Golang : Test file read write permission example
+10.9k Golang : Sort and reverse sort a slice of runes
+12.5k Golang : Image to ASCII art example
+9.7k Golang : How to unmarshal JSON inner/nested value and assign to specific struct?
+4.1k Golang : A program that contain another program and executes it during run-time
+10.2k Golang : How to determine a prime number?
+4.1k PHP : Extract part of a string starting from the middle