To launch a server serving an HTML page you can use the following steps.
1.) On the create droplet page create a droplet (server) using the LAMP image (under the one-click apps tab). Any size will do for hosting static content.
2.) You will receive an email with a temporary password. Before you can start managing your files you will need to set a permanent password. You can do so by doing the following:
- On your droplets page click the More section on the far right for your new droplet and click “Access Console”
Enter the username “root”
Enter the temporary password that was emailed to you. Unfortunately copy/paste will not work here.
Enter the temporary password a second time
Enter your new password and retype it to confirm
Close the console window
3.) Now that you have a permanent password you will be able to log in via SFTP to manage your files. Any SFTP client will work but for this example we will use the free Filezilla client. If you do not already have Filezilla, download and install it.
4.) Click the left-most button on the Filezilla toolbar. This will open the “site manager”.
5.) Click on “New Site” and enter the following information:
- Host: Your droplet’s IP address
- Port: 22
- Protocol: SFTP - SSH File Transfer Protocol
- Login Type: Normal
- User: root
- Password: The new permanent password you created
Then click “Connect”
6.) Your server’s files will appear in the right hand side and your local files in the left. You will start out in the directory
/root and your web files will be in
/var/www/html so you will first need to go up a directory by double-clicking on
.. in the right side pane, then navigate to
7.) A file named index.html placed in this directory will be served by your droplet if you enter your IP address into your browser.
That is the bare essentials. I would also recommend reviewing these tutorials
If you run into any trouble following these steps follow up here and I’ll be happy to clarify or help troubleshoot.
Another option if you would prefer to have a blog platform like WordPress would be to use the WordPress one-click image. This will allow you to get a site up and running easily but would not directly support just uploading html files.
When you start a new server, there are a few steps that you should take every time to add some basic security and give you a solid foundation. In this guide, we'll walk you through the basic steps necessary to hit the ground running with Ubuntu 16.04.