We have installed Ubuntu 16.04 on our server and almost everything is done. When we try to start nginx, we get this error: Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details.
Could you please help us to solve this issue. We have been searching for hours with no luck.
It looks like Passenger isn’t bundled into your Nginx configuration
We are running run Ruby on rails.
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
I had same problem after upgrading Ubuntu to 16… solution was to fix paths in file:
sudo vi /lib/systemd/system/nginx.service
to: “/opt/nginx/sbin/nginx”
and after “systemctl daemon-reload” everthing worked
@rubioli
The following guide should provide you with a simplified way of installing Ruby, Passenger and NGINX with minimal hassle.
https://www.digitalocean.com/community/tutorials/how-to-install-rails-and-nginx-with-passenger-on-ubuntu
You’ll need to install a version of Nginx that includes passenger. This can mean compiling Nginx yourself or using a binary package that includes passenger support.