Lost WordPress site on Raspberry Pi4

Posted on

Problem :

Recently my router died and we have installed a spanking new fibre system with a new Google Wi-Fi mesh. Unfortunately the website on my RP no longer loads. I have assigned a new static IP to the Pi on my router but that didn’t work.
The system is an Apache2, PHP, MySQL setup. I loaded up a fresh SD card with a new WordPress database which worked fine on that IP.

Presumably in my tinkering I’ve messed up some settings but as a bit of an amateur, it’s beyond me what I’ve done.

It returns this message-
This site can’t be reached www.davidhallows.com refused to connect.

Any help would be awesome, there’s a whole load of blog posts I could do with not losing.

Solution :

It is really hard to give a good reply with so few details but my first guess would be that you have a firewall blocking ports 80 and 443 making your website unreachable.

Try to look in your router config to open those ports and forward them to your RPI’s IP address:

  1. Open the Google Home app Google Home app.
  2. Tap Wi-Fi and then Settings and then Advanced Networking.
  3. Tap Port management and then Add .
  4. Select the tab for the type of IP address you’re forwarding.
  5. Select a device.
  6. Add your internal and external ports.
    • For IPv4: Choose an internal port used by the device on the local network and an external port on the WAN. You can enter a single port number (#) or a port range (####-####).
      Note: When entering a port range internal and external ranges need to be the same. This is not the case for single port forwarding.
    • For IPv6: Enter the port range.
      Note: Some devices will suggest what ports to use, while others let you choose. If you don’t know which ports to forward, contact the device manufacturer or check the device’s manual.
  7. Choose either Transmission Control Protocol (TCP), User Datagram Protocol (UDP), or TCP/UDP. These are different protocols used to send data over the internet.
  8. Tap Save .

(instructions from: https://support.google.com/googlenest/answer/6274503?hl=en)

Leave a Reply

Your email address will not be published. Required fields are marked *