In Digital Ocean droplet WordPress sites are suddenly stopped working. Anyone can help me on this?

Posted October 4, 2019 3k views


In my droplet WordPress sites are suddenly stopped working. But the HTML sites are working fine.

I couldn’t log in to the FTP also. It’s saying “Error”

Error: Network error: Connection refused
Error: Could not connect to the server

I am not able to run the putty also. I can only access the console.

Not even I am not able to take the backup of my websites.

Can anyone please help me with this?


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.

Submit an Answer
4 answers

Hi @SuperforceValli,

Firstly, can you please ping your droplet to make sure it’s live? To do so open your terminal/cmd and type

ping $dropletIP

I know you mentioned you are able to access it via console but still, let’s see if it’s accessible from the world not just locally by DO.

Next step

Now, when you know the server is actually working okay, check your domain. Do a ping again but on your domain now


Does it ping to your droplet’s IP address? If no, let me know, if yes - great!

Next step

Now you would need to enter your server via the console. Once you are in, check if apache is actually running. You can do so by typing the following command :

netstat -tulpen | grep 80

This will show you which service, if any is running on port 80. If there is nothing running there, it would mean you need to start apache. To do so, you can run the following command

service httpd start

or if this doesn’t work then

service apache2 start

If when starting apache, you experience some errors, please post them here in order to help you out. If it starts, then great.

Last Step

It’s possible your network is down. Console to your server and type

service network restart

If it starts without a problem, try again to ping the droplet and check your website. If it doesn’t paste the errors here.

Kind regards,

  • Hi @KFerdinandov

    Thank you for your response.

    I am not sure that ping is working for me or not. I got this while I am running ping with IP


    I am not able to exit the console as well.

  • I have tried to run the command ping with the domain.

    But it says “Destination Host Unreachable”

    Please check the screenshot below.


    • Can you try and ping the droplet’s IP and domain outside of the server’s console and see what the result would be?

      • I am sorry, I can only access the console.

        Putty also not working ☹️

        • If you are using Putty, I would assume you are on a windows computer.

          Can you please open the cmd on it and try to ping both domain and the droplet IP.

          If you can’t, you can provide me with them so that I can do it for you.

          • I am really very sorry for troubling you and thank you so much for the effort.

            In cmd for ping IP, I am getting this “Ping request could not find host $my_ip. Please check the name and try again.

            And for ping domain
            “Pinging [] with 32 bytes of data:
            Request timed out.
            Request timed out.
            Request timed out.
            Request timed out.

            Ping statistics for
            Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),”



Any possibilities to backup my WordPress websites with the help of the console?

If yes, please let me know. I will destroy the existing droplet and I will create a new one.


I have just tested the Disk usage using this command “$ df -h”

It’s 100% used. I am not sure where it has been used much space.

ScreenshotExample link

  • hi @SuperforceValli,

    This would explain why none of your services are not working and why you can’t actually ping the droplet.

    Do you need help pinpointing your biggest folders/files? Looking forward to your reply.

    • @KFerdinandov,

      Yes please. I have tried many commands to check where the space used fully. I didn’t get anything.

      One more thing, when I started to facing this problem I increased the size of my droplet from 8GB to 16GB memory plan.

      May I know please exactly what should I have to do to FIX this issue or do you want me to resize my plan again?

      • Hi @SuperforceValli,

        Can you let me know what did you resize is it your RAM or your Disk Space?

        As for the space itself, let’s start with the most commonly used one :

        du -sh /

        This will check the contents of your whole droplet and provide you with the folders in /. This command might take a white to finish though and you’ll still need to search down your folders to see the exact problem.

        The second command might be more useful. It will help you find the 20 largest files in /

         sudo du -a / 2>/dev/null | sort -n -r | head -n 20

        Additionally, you can find the largest file recursively using find

        sudo find / -type f -printf "%s\t%p\n" | sort -n | tail -1
        find $HOME -type f -printf '%s %p\n' | sort -nr | head -10

        Lastly, you might have a folder with a million small files rather than one big file. To find it, you can try the following

        du -Sh | sort -rh | head -5

        Please let me know if any of the above helped out.


Hi @KFerdinandov,

I have resized “CPU and RAM only”.

I am getting following output while running this command:

du -sh /

“No such file or directory”

sudo du -a / 2>/dev/null | sort -n -r | head -n 20

It doesn’t give any output.

Sorry, I have spent many days on this issue. Finally, I have deleted around 80GB Snapshot because of the disk space issue. But no use. I have an old copy of my websites. I will activate them with the new droplet.

I need one more help. Can you please guide me to go through the full Digital Ocean course or any guidance. I have to learn DO fully. I like to work on it. But I am stuck like this type of issues.

Thank you so much for your help :-)