By m73mitchell
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]:
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.
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!
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?
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.