Permission problems installing nginx

June 9, 2013 2.2k views
I'm following along with this article At Step 6, I'm getting the following message asking me where I want nginx installed to (I clicked return) and then got an error because I'm running the installer as my name 'michael' (which I gave sudo privileges) instead of root. Can you explain what I'm doing wrong? -- Where do you want to install Nginx to? Please specify a prefix directory [/opt/nginx]: -------------------------------------------- Permission problems This installer must be able to write to the following directory: /opt/nginx But it can't do that, because you're running the installer as michael. Please re-run this installer as root.
3 Answers
Try prefixing the command with "sudo " so it runs as root.
But I'm not entering a command (I'm only hitting 'enter' when it asks me to specify a "prefix directory") which is triggering the permissions error. How do I prefix an 'enter' with sudo?
The command on step 6 -- sudo rvmsudo passenger-install-nginx-module
Have another answer? Share your knowledge.