if i want to display php files and have already configured my server to do so(ubuntu 14.04), do i need to place files in the html folder?
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!
If you only host one site on your server you can put them into the default document root which I believe is /var/www/html.
If you host multiple sites you can create a sub directory in /var/www/html for every site. Just make sure that the default server block is not serving from that folder and create separate server blocks to every site.
It is not necessary to use /var/www/html for this. You can put them anywhere you want them within reason. Just make sure that the file permissions are safe and the server blocks have the right document roots.
It depends, if you are using a control panel usually the home directory is the document root for websites. If not, go as the others suggested.
You should place your web files in www folder You can access it by running cd /var/www/ from terminal.
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.