passenger - Nginx unknown directive for passenger_root -
When I try to restart the server, I am running in an error I do not know how to fix it .
user @ deployment: ~ $ sudo nginx -s reload nginx: [emerging] unknown instructions in /etc/nginx/nginx.conf:66 "traveler_root"
I have added these lines to the NGN configuration file '/etc/nginx/nginx.conf'
passenger_root /home/deploy/.rvm/gems/ruby-2.0.0 -p353 /gems/passenger-4.0.37; Passenger_ruby /home/deploy/.rvm/gems/ruby-2.0.0-p353/wrappers/ruby;
I ran into the same thing, I accidentally installed the nginx-extras package Which was usually provided by Ubuntu provided by the Fusion Traveler's repository. The passenger package has been compiled as a module with Passenger Nginx, while there is no other package.
The solution is to add the appropriate repository of the flyer, since then install the NGN X-Xtra package. The method of doing this is different depending on your Linux distro and version so that you should first read the document:
If reading a documentation is a problem for you, then you can try those commands that I Used to add repository and install nginx-extras package from it.
sudo apt-key adv --keyserver hkp: //keyserver.ubuntu.com: 80 - RECV-key 561F9B9CAC40B2F7 Sudo ap-go install -a apt-transport-https ca-certificates Sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger Trusted Main & gt; /etc/apt/sources.list.d/passenger.list 'sudo apt-get update sudo apt-get install -y nginx-extras
Comments
Post a Comment