By jczepluch
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!
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)
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.