Managing Disk Space in DirectAdmin: Quota Tips
Managing disk space is essential to make the most of your hosting. In this guide, you will learn how to view and manage your disk space usage in DirectAdmin.
Viewing Disk Space
Via the Dashboard
- Log in to DirectAdmin
- On the main dashboard, you will immediately see your disk space usage
- A bar shows how much space you are using and how much is available
Detailed Overview
- Go to Disk Usage or Schijfgebruik
- You will see an overview per folder and file type
- The largest folders are shown first
What Counts Towards Disk Space?
Your disk space quota includes:
- Website files - HTML, PHP, images, uploads
- Databases - MySQL databases and tables
- Email - All email messages in your mailboxes
- Logs - Access logs and error logs
- Backups - Local backups on the server
Common Space Hogs
| Type | Location | Typical Size |
|---|---|---|
| WordPress uploads | /wp-content/uploads/ | Images, PDFs |
| Database | MySQL | Posts, products, logs |
| Mailboxes | Attachments, old mail | |
| Logs | /logs/ | Access and error logs |
| Backups | /backups/ | Full site backups |
| Cache | /cache/ or /wp-content/cache/ | Temporary files |
Freeing Up Space
1. Deleting Old Emails
Email with large attachments is often the culprit:
- Log in to webmail
- Sort by size
- Delete emails with large attachments
- Empty the trash
2. Deleting Unused Files
- Go to File Manager
- Navigate to /public_html/
- Look for:
- Old backup files (.zip, .tar.gz)
- Unused themes and plugins
- Test files and folders
- Delete what you no longer need
3. Cleaning Up WordPress
For WordPress websites:
- Delete unused themes (Appearance > Themes)
- Delete inactive plugins (Plugins > Installed Plugins)
- Empty the trash (Posts > Trash)
- Delete old revisions of posts
- Optimize images with a plugin like Smush
4. Optimizing the Database
- Go to phpMyAdmin in DirectAdmin
- Select your database
- Select all tables
- Choose Optimize table from the dropdown menu
This clears fragmented space and can reduce your database size.
5. Cleaning Up Logs
Access and error logs can grow large:
- Go to File Manager
- Navigate to /domains/jouwsite.nl/logs/
- Download the logs if needed for analysis
- Delete or empty old log files
Tip: Ask support to set up automatic log rotation.
6. Clearing Cache
Caching plugins store temporary files:
- Clear the cache via your caching plugin (W3 Total Cache, WP Super Cache, etc.)
- Manually delete files in /wp-content/cache/ if necessary
Increasing Quota
If you consistently need more space:
- Check what hosting package you have
- Consider upgrading to a larger package
- Contact sales for options
Warnings When Disk is Full
DirectAdmin sends warnings when you:
- Reach 80% of your quota (yellow warning)
- Reach 90% of your quota (orange warning)
- Reach 100% (red warning - action required)
Consequences of a Full Disk
If your disk space is full:
- New emails are rejected
- Website cannot upload files
- Database cannot write new data
- Backups fail
Monitoring Tips
- Check monthly: Regularly review your disk usage
- Set alerts: Configure email alerts for quota warnings
- Automate cleanup: Use cron jobs for automatic log rotation
- Monitor growth: Keep track of how quickly your space is growing
Disk Space per Domain
If you have multiple domains:
- Go to Domain Usage or check per domain
- See which domain uses the most space
- Focus cleanup on the largest consumer
Best Practices
- Optimize images before uploading them
- Use external storage for large files (CDN, cloud storage)
- Limit email attachments - send links instead of large files
- Archive old data - move old content to external storage
- Regularly store backups externally and delete local copies
Related Articles
- Using File Manager in DirectAdmin
- Creating and Restoring Backups in DirectAdmin
- Viewing Error Logs in DirectAdmin
Need Help?
We are here for you! Are you facing any issues or have questions? Our support team is happy to assist you personally. Send us a message via the ticket system - we usually respond within a few hours and are happy to help.
0 van 0 vonden dit nuttig