Question

Wordpress installation on digitalocean eating the server storage

I run a wordpress installation on digitalocean vps. the server desk space is 80gb, but only 11gb left. here is the space used by wordpress:

WordPress directory size 46.12 MB

Uploads directory size 1.58 GB

Themes directory size 49.79 MB

Plugins directory size 77.86 MB

Database size 212.83 MB

Total installation size 1.95 GB

what happened to the rest of the desk space? i run on Apache/2.4.29 (Ubuntu)

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.

Hi @Nour,

The other disk space that’s taken is not directly in your Website’s folder. It could be mails, logs, some dump files indicated more errors and so on.

The best way is to check here for pointers:

https://www.digitalocean.com/community/questions/28-no-space-left-on-device-error

Additionally, what I use in situations like this is some useful find commands:

  • Finds you to 10 biggest files - find /-type f -printf "%s\t%p\n" | sort -n | tail -n 10. You can easily find the 50 biggest files by changing the number 10 to 50 at the end of the command
  • Find files bigger than a certain amount of MBs sudo find / -type f -size +500M -exec ls -lh {} \; In the example it’s above 500M but again you can easily change it to whatever you like

Hello,

What I could suggest is following the steps from the answer here on how to find the largest directory or file that is consuming most of your disk space:

https://www.digitalocean.com/community/questions/28-no-space-left-on-device-error

It is possible that your MySQL database has grown a lot too.

Feel free to share the output of the commands listed in the answer above.

Best,

Bobby