Report this

What is the reason for this report?

Unable to find var/www/html

Posted on January 9, 2016

Hello. Right now I have an Ubuntu MEAN 14.04 droplet, and I am trying to transfer an html file using SFTP via Filezilla.

I connect to my droplet on filezilla as a non-root user, and I am able to move into /var but var/www and var/www/html apparently do not exist.

How can I solve this so that I am able to transfer the HTML file to my website?



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!

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.

This comment has been deleted

Remember first install the apache sudo yum install httpd

If /var/www/html doesn’t exist, then it is likely the case that your web server installation is not configured to use that directory as the web root. Take a look at your web server configuration files to see which directory is designated as the web root. Then move your HTML files there. Alternatively, if you really want /var/www/html as the web root, you can change the configuration. Just be aware that it will require particular permissions to work properly and securely.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.