New user: What is my web url? Unable to find my index.html.

October 26, 2015 2k views

What is my external URL?
This is what they gave me. I can putty into and vi a little helloworld index.html file.

chris2f4fab5113 username (their choice)
Your new Droplet is all set to go! You can access it using the following credentials:
Public Network

Droplet Name: CJC
IP Address:

somewhere in the process of establishing the droplet, I needed to enter a "web" name so I used

It also wanted a pre-registered domain name associated with this droplet: (which I registered at a year ago)
I also put the three DigitalOcean DNS lookups in the domaindiscover settings

I cannot get anything to come up in the browser. "unable to connect" "this webpage is unavailable" "this webpage is unavailable" shows a black unix command panel that I can use same as with putty.

Can you help me figure out what name to use in the browser to show my index.html helloworld file?

2 Answers

I looked up your droplet and it appears you created it with the stock Ubuntu 14.04 x64 image which provides a barebones OS without a web server installed by default. Not to worry, you can get a web server up and running with just a couple commands. In putty, once you are connected, type the following:

apt-get update
apt-get install apache2

This will install a basic apache web server (more packages are needed to support things like php if you are not just hosting a static site, let me know if you are hosting something dynamic).

Then you can move your index.html into the directory /var/www/html with

mv  index.html /var/www/html/index.html

and you should see your page when you navigate to your IP address in your browser. For your DNS, you will need to ensure that you have configured records in our DNS server which point to your droplet. This guide will walk you through this process.

Let me know if you have any other questions, I'm happy to help you get up and running :)

by Etel Sverdlov
This article walks you through setting up the DNS for your site. The tutorial includes steps to set up an A records, point your nameservers, and provides some information about MX records.
  • Thank you - It worked! The raw IP runs my helloworld file! I still need to fix DNS. I will also need to run php and MySql as well.

    • I revisited the guide above and it seems right. It works now without the w's. Thanks!!

    • To set up support for PHP and MySQL you can run the following:

      apt-get update
      apt-get install php5-mysql mysql-server libapache2-mod-php5 php5-mcrypt php5-gd php5-curl

      This will install php including it's support for the apache web server, a couple of common php libraries and MySQL. During the install process you will be prompted to create a password for the MySQL root user, you can set this to anything you like.

      • Ok, this went well. Sry if I seem n00b, actually I go back to punch cards! At this point I need to import some tables and FTP some code that I will need to edit slightly. I can use vi. Is there any gui admin panel I can bring up for database? Also Filezilla w/b great but don't know what to put for "host". Again, thanks so much for the jumpstart.

        • You'll be able to use filezilla with an SFTP connection using your IP address as the server/host, root as the user and your root password. This will bring you to /root and you can navigate up a directory and then to /var/www/html to drop in your content.

          As for the database I would recommend exporting it as a sql file from where you have it and then uploading the file. You can then import it via the CLI. There is no graphical control panel by default.

          If your sql file starts with a CREATE DATABASE command then you can skip this next step, otherwise you'll have to create an empty database first.

          First run mysql

          mysql -uroot -p

          You'll be prompted for the root MySQL password. Youll then be in the mysql cli. You can then create your database with:

          CREATE DATABASE dbname;

          Where dbname is the name for your new database.

          Next type exit; to exit the mysql cli.

          Now you can import your .sql file with:

          mysql -u root  -p dbname < yourfile.sql

          You will now have your db imported.

          • This also went fine AFAIK. The database "mysql" already existed so I assumed it was created at some earlier point. The imports went in with no error but I cannot "talk" to it, as in show tables, select, etc. Also my script has several parameters I need to verify to get it working.
            $servername = "localhost";
            $username = "root";
            $password = ;
            $dbname = "mysql";
            $database = "mysql";

  • I went through the guide above and have a record for
    The A record has @ only and my IP. The 3 DO nameservers are listed below. It woks now without the w's. Thanks!!


Which web server application are you using to host your website? Are you using Apache or Nginx? In your DNS settings on DigitalOcean, are you connecting your IP address to your domain?

Have another answer? Share your knowledge.