By quintessence
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…
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!
Is the default vhost enabled?
apache2 -S
apache2ctl -S
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.
This comment has been deleted
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.