Question

Just setup WordPress on my droplet server, now my site is down, please help?

Hi there everyone, I connected to my droplet server via SSH and followed all the steps in this guide: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-16-04

Everything worked great, and I was completely successful in my attempt. I entered my site URL in google chrome and got the wordpress select-a-language setup, exactly as shown in the guide.

I then shut down my PC and went to bed. When I woke up, I tried entering my site URL from a different computer to finish the wordpress setup and suddenly my site was down. I got the following error: “This site can’t be reached cultureontrial.com’s server DNS address could not be found. Try running Windows Network Diagnostics. DNS_PROBE_FINISHED_NXDOMAIN”

I did absolutely nothing at all between that timeframe, didn’t touch my server, didn’t even use Putty or the droplet in any way. I tried again a few days later from the PC I did the setup on and still the site was down.

I tried following Step 5 in the guide over again, ran “curl -s https://api.wordpress.org/secret-key/1.1/salt/” and got new secure values. Copied and pasted them into the wp-config.php file exactly as I did last time, and still nothing.

If anyone can please help on this let me know. It would be really deeply appreciated as I’m getting quite frustrated by this!

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Accepted Answer

Hello,

Please change this line.

#ServerName www.example.com

Then you should add your domain in instead.

ServerName www.example.com

Notice in my second example the “#” sign is also removed. That is important to ensure the line is not commented out. After you make the edit, restart Apache.

service apache2 restart

Hope this gets things working. Thanks.

unfortunately it did not work still, but thank you so much for your efforts. if you have any other suggestions i’d be willing to try them.

Hello,

Sorry, I’m not to familiar with Apache. I did some research and this should get things working. In 000-default.conf, replace ServerName with the following.

ServerName example.com
ServerAlias www.example.com

Then restart Apache.

service apache2 restart

Hopefully this will get things working for you.

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts

You’re welcome. Glad I could help.

You can cat “000-default.conf”. Also have you checked your DNS records setup?

Thanks.

Hello,

I cannot access your domain at all. This looks to be a DNS issue. Could you please verify your records? When I ping your domain, it does not come back with an IP address. I can also help you further if you post your DNS records configuration here.

dell@alexstine1 ~
$ ping cultureontrial.com
Ping request could not find host cultureontrial.com. Please check the name and try again.

Could you also cat your .htaccess file and /etc/apache/sites-available/site.com.conf file? I’d like to see those configurations as well.

Thanks.

Hello,

Could you please paste your wp-config.php here so I can have a look? Go ahead and star * out the DB information and other security information so it’s not public here on the forums.

We’ll figure it out. Thanks.

This comment has been deleted

Hello,

Please add these define statements to wp-config.php.

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

Replace http://example.com with your domain name. Hope it helps, thanks.

UPDATE: I tried going through the steps in the guide again and got it (kind of) working, when I enter my server IP address I can access the wordpress setup just fine (just as i did before) but when I enter the url cultureontrial.com i still get the page not found error. When I first followed this guide I got the wordpress setup when I entered the domain.