Report this

What is the reason for this report?

Domian could not connect to directory

Posted on June 22, 2020

Hello, I have recently propogated my domain quizimax.com to Digital Ocean but it is not pointing to directories. I am new to digital ocean. I created a sudo user and created the directories for it /var/www/ in it. I have put my code in it. Now I want to point the domain to this directory.



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.

Hi @endritkanani,

I can see your domain is pointing now to a DigitalOcean droplet. Most probably you needed to wait for your DNS to propagate.

Now to your other question, in order to point your website to load files from the /var/www folder, you’ll need to install a WebService - either Apache or Nginx. Since you haven’t mentioned which one you’ve chosen or even installed, I’ll provide you with the two articles which you can follow.

The first article will help you with installing Nginx among MySQL and PHP. If you have installed them, you can skip those steps and directly go to Nginx installation and configuration:

https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-ubuntu-18-04

The next article will help with Apache. MySQL and PHP again are included but as said above you can skip those steps if you have already installed the services :

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04

Regards, KFSys

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.