I’m following along with this article https://www.digitalocean.com/community/articles/how-to-install-rails-and-nginx-with-passenger-on-ubuntu. 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]:
This installer must be able to write to the following directory:
But it can’t do that, because you’re running the installer as michael. Please re-run this installer as root.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!