Report this

What is the reason for this report?

Has anyone got a working passenger with nginx-module installation on arch linux?

Posted on January 22, 2014

I have for a couple of days now tried to get passenger-install-nginx-module to work on my Arch linux droplet. But with no luck. The installation runs smooth, and everythings seems to be working nicely. I have set up the conf file and I am ready to start nginx, but from here on, nothing works. “sudo systemctl start nginx” says that no such file exists and is unable to start nginx. It is no problem to start nginx in this way if I install nginx without passenger, but when it is installed through the passenger-install-nginx-module command, it is unable to start. I find this very odd, and I am curious of how you other guys have gotten this to work on arch.



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.

Update when running “systemctl start nginx” i get this error: Job for nginx.service failed.

#run the nginx config test first <br>nginx -t <br> <br>#find the systemd services which fail to start <br>systemctl --state=failed <br> <br>systemctl status nginx <br>#you should see at the end somthing like <br>Process: 18570 ExecStart=/usr/lib/systemd/… <br> <br>#Check the messages for the errors <br>journalctl -b _PID=18570 <br> <br>#to read the log, use journalctl <br>journalctl -u nginx <br> <br>#chcek if you can start nginx from command line <br>/usr/bin/nginx -s start <br>

The ‘nginx-passenger’ package in the AUR has what you’re looking for. https://aur.archlinux.org/packages/nginx-passenger/ <br> <br>You can install it with your favorite AUR helper, e.g., <br>$ yaourt -S nginx-passenger <br> <br>Once you’ve installed this package, nginx needs to be configured to enable passenger. Here’s an example of /etc/nginx/nginx.conf: <br> <br>http { <br> passenger_root /usr/lib/passenger; <br> passenger_ruby /usr/bin/ruby; <br> … <br> <br> server { <br> listen 80; <br> server_name www.example.com; <br> root /srv/http/example/public; # <-- be sure to point to ‘public’! <br> passenger_enabled on; <br> } <br> <br> … <br>} <br> <br>(Full disclosure: I maintain this AUR package)

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.