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.

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.

×
1 answer

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

by Mark Drake
A "LAMP" stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This stack typically consists of the Linux operating system, the Apache web server, a MySQL database, and PHP, a dynamic content processor. This tutorial serves as a guide for installing these components on an Ubuntu 18.04 server.
Submit an Answer