Question

root is missing. how do I install it?

Hello, I am new at this and I followed “Introduction to Nginx and LEMP on Ubuntu 14.04” tutorial. I am stuck on part 3 where it says “root /var/www/example.com/html;”

This is the error I am getting:

v@V:~$ root /var/www/vincentlampone.com/html; -bash: /usr/bin/root: No such file or directory

Seems like I don’t have root set up?


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.

The part you are reading is to be modified in the config file. Not an actual command to type.

server {
    listen 80 default_server;
    listen [::]:80 default_server ipv6only=on;

    root /usr/share/nginx/html;   <---- HERE :D
    index index.html index.htm;

    server_name localhost;

    location / {
        try_files $uri $uri/ =404;
    }
}

This comment has been deleted