By rubioli
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!
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.
The following guide should provide you with a simplified way of installing Ruby, Passenger and NGINX with minimal hassle.
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.