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 : Capture stdout of a child process and act according to the result
+29.4k Golang : How to create new XML file ?
+8.8k Golang : GMail API create and send draft with simple upload attachment example
+12.7k Swift : Convert (cast) Int or int32 value to CGFloat
+7.7k Golang : Example of how to detect which type of script a word belongs to
+22.1k Golang : How to run Golang application such as web server in the background or as daemon?
+11.6k Golang : Find age or leap age from date of birth example
+8.4k PHP : How to parse ElasticSearch JSON ?
+11.1k Golang : Proper way to test CIDR membership of an IP 4 or 6 address example
+10.5k Golang : How to unmarshal JSON inner/nested value and assign to specific struct?
+12.2k Golang : List running EC2 instances and descriptions
+20.1k Golang : How to get struct tag and use field name to retrieve data?