Question

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

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.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

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.

You can find a better-looking readme here: <br>https://github.com/t-richards/aur-nginx-passenger

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)

#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>