I am setting up a small droplet ($5/mo) with a basic Wordpress installation. I followed the instructions for setting up Wordpress using the LAMP stack from here.
The installation itself seems to be fine, the problem I am having now is that I cannot redirect my domain name to the Wordpress site. The behavior I am seeing is if I go to my droplet’s IP address in the browser I am taken to the Wordpress site; however, if I enter my domain name I am taken to the “Is this your domain name? Click here to manage your domain” splash page that my provider uses (domain.com).
I followed the Digital Ocean host name tutorial directions here. To review, this is what I have done so far:
@
and then my droplet’s IP address (e.g. a.b.c.d
)*
and then my desired domain (e.g. example.com
)/etc/apache2/sites-enabled/000-default.conf
file, I have: ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ServerName example.com
<Directory /var/www/html/>
AllowOverride All
</Directory>
(Where example.com
is my actual domain name.) I saw in another thread that I should edit the other file that is not 000-default.conf
; however, 000-default.conf
is the only file I have in that directory.
Port 80 is open - see output of sudo netstat -plunt
:
$ sudo netstat -plunt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 881/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 969/sendmail: MTA:
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2604/mysqld
tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN 969/sendmail: MTA:
tcp6 0 0 :::22 :::* LISTEN 881/sshd
tcp6 0 0 :::80 :::* LISTEN 4626/apache2
Please let me know if there’s anything else I can provide.
EDIT: I made all these changes ~24 hours ago. I realize that sometimes it takes a little while to propagate the changes, but I believe that it’s still well below 24 hours…
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.
The configuration error is no problem, the command you need to use depends on the OS you are using. The second command gives an output of the vhost, with a result that the default vhost is being used. Good to hear you got it solved now, for any more questions I’ll be happy to help you.
This comment has been deleted
Is the default vhost enabled?
Did you also restart the apache service? And please remove your computers DNS cache or put the domain name here. It could be possible that you are still receiving the cache instead of realtime site.