I have used this tutorial to install everything: https://www.digitalocean.com/community/articles/how-to-launch-your-site-on-a-new-ubuntu-12-04-server-with-lamp-sftp-and-dns
But now I want to test and set up a website. I use sftp to connect. I go to this folder: /var/www/ Then there is a folder html where the “index.html” file is with the ubuntu info.
How can I change the html folder to an different name?
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!
Hello, <br> <br>If you follow the instructions under apache2 in the LAMP section of the guide above: https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu <br> <br>You will reach a point where it shows the directory that apache2 will look for the website content. You can change this to a different path or whatever folder you would like. Restart apache and the server should point to the new location.
Edit the virtualhost file in <code>/etc/apache2/sites-enabled</code> and set <code>DocumentRoot</code> to whatever path you like.
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.