Getting This site can’t be reached
I installed WordPress using stackscripts. However when i try to open the IP address in browser I am getting This site can’t be reached. Am I missing something that needs to be configured?
I ran sudo iptables -L -nv and here's the result I got.
Chain INPUT (policy ACCEPT 5944 packets, 445K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 5228 packets, 596K bytes)
pkts bytes target prot opt in out source destination
I wanted to check status of apache and wanted to restart the same but I am getting apache2: unrecognized service. I ran sudo service apache2 restart.
Can anyone please point me in right direction?
1 Reply
Hey there! There could be a few reasons for this. One thing I would recommend is taking a look at the Linode's Lish console after it completed the StackScript to make sure the StackScript ran properly. Depending on the script, there may have been an error when it was deployed.
I would also recommend running ls -a1 /var/log
to see what services are listed there. It's a pretty good way of double checking if the service is actually installed as there should be a log folder there for the service. I would also recommend running netstat -plunt
, or ss -plunt
on Ubuntu 18.04 to see the services actively listening on ports.
If the service wasn't installed properly or the StackScript didn't complete, you might want to try reinstalling from the StackScript, or selecting a different one. If you can provide the StackScript you used we might be able to investigate a little further. Hope this helps point you in the right direction!