Steps to Point a Domain to Ubuntu that run Apache Websever

Apache PHP MySQL tools that power the web

So creating a website is hard for many people, especially if you are new to it. I believe if you are just starting and never done it before, it is gonna be really frustrating experiences. Deployment process is also one hell of task, without the help of experienced people near you, you'll gonna end up scratching your head a lot.

These are steps to add a domain name like `` to Ubuntu with Apache as the web server.

1. Login to your domain provider panel
I am using Namecheap, you can buy your domain anywhere.
- Go to detail of your domain, then switch to Advanced DNS tab or something similar if you are not using Namecheap, maybe DNS management or could be something else.
- Then, set your host record, similar to this table:

A Record
A Record
Automatic is my server IP address, you must change it to your own.

2. Set permission to your web root
Using Vim, Nano or any kind of text editor, and using root user, edit /etc/apache2/httpd.conf and add this lines to the end of the file:

<Directory /home/techgalery/public_html/>
 Options Indexes FollowSymLinks
 AllowOverride All
 Require all granted

/home/techgalery/public_html/ is where my website located, so change it to your own website path.

3. Create a site configuration for your domain
Inside /etc/apache2/sites-available create a new file and add these lines:

<VirtualHost *:80>
 DirectoryIndex index.php index.html
 DocumentRoot /home/techgalery/public_html

Don't forget to change to actual domain name.

4. Then enable that configuration using this command

sudo en2site

5. To reload Apache

sudo service apache2 reload

I think by following these steps above, you should have successfully pointed your domain to your web server. But, if you encounter any issues or face difficulties regarding some unknown information like you didn’t know where the domain management, or what is the SSH login credential, I suggest you reach out to your hosting provider for assistance. They usually have some live chat to help you, livechat is faster than a normal ticket.

After following the steps above, if you still can not change the domain destination, you can reach out to me in the comment below, or contact me using the email I provided. If it is urgent, maybe I will help you to make things right. Rather than attempting to fix the problem on your own and potentially causing more complications, it's wise to seek professional support. 


Popular posts from this blog

ERROR 1348 Column Password Is Not Updatable When Updating MySQL Root Password

How To Connect SSH Using PEM Certificate On Windows

Which Better WinZip vs WinRAR? Windows Zip and Unzip Tools

How To Create Spring Boot Project Using Netbeans

Spring Kafka - how to use ReplyingKafkaTemplate send and reply synchronously