Wordpress Deployment
Hello,
I am trying to point my Bluehost domain name to my VPS IP address and keep getting this error message. Is anyone familiar with this.
Hello,
I am trying to point my Bluehost domain name to my VPS IP address and keep getting this error message. Is anyone familiar with this.
Yes, You need to go to available sites if you have apache2 on your server.
cd /etc/apache2/sites-available/
there should be a file called 000-default.conf
Edit the file with the command below
sudo nano 000-default.conf
Check the file content there.
Right above the serveradmin add the below lines (If do not exist)
ServerName domain.com
ServerAlias www.domain.com
Make sure the site's directory location is correct in the DocumentRoot
It should be like /var/www/html/
Save and exit by
CTRL + X, Y, Enter
cd to that directory and see if the Wordpress files or your website's index.html are there or not. Find the right directory path to your website files and add them to the config file.
Now run the below command
sudo a2ensite 000-default.conf
change the file name in above command.
sudo service apache2 restart
Now check your site.