Report this

What is the reason for this report?

Problem with starting nginx in Ubuntu 16.04

Posted on June 9, 2016

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.

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.

@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

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.