Common DirectAdmin Errors and Fixes
This guide covers the most common errors you may encounter on DirectAdmin shared hosting and how to resolve them.
500 Internal Server Error
Causes
- Incorrect
.htaccessrules - PHP errors in your scripts
- Incorrect file permissions
- Corrupted
.htaccessfile
Fixes
- Rename `.htaccess` temporarily:
bash
mv .htaccess .htaccess.bakIf the site loads, the issue is in your .htaccess file.
- Check error logs in DirectAdmin under Error Log or via SSH:
bash
tail -50 ~/domains/yourdomain.com/logs/error.log- Fix file permissions:
bash
find ~/domains/yourdomain.com/public_html -type d -exec chmod 755 {} ;
find ~/domains/yourdomain.com/public_html -type f -exec chmod 644 {} ;403 Forbidden
Causes
- Missing
index.phporindex.htmlfile - Directory listing disabled
- IP blocked by firewall
- Incorrect file permissions
Fixes
- Ensure an index file exists in the directory
- Check file permissions (directories: 755, files: 644)
- Contact support if your IP may have been blocked
404 Not Found
Causes
- File or page does not exist
- Incorrect URL or broken link
- Missing
.htaccessrewrite rules
Fixes
- Verify the file exists in the correct directory
- For WordPress, go to Settings > Permalinks and click Save to regenerate
.htaccess - Check your
.htaccessfor correct rewrite rules
508 Resource Limit Reached
Causes
- Your account has exceeded CloudLinux resource limits (CPU, memory, or entry processes)
Fixes
- Check resource usage in DirectAdmin under Resource Usage
- Enable caching to reduce PHP execution
- Optimize database queries and images
- Consider upgrading your hosting plan
- Check for runaway scripts or bot traffic
Database Connection Error
Common Messages
- "Error establishing a database connection"
- "Access denied for user"
- "Unknown database"
Fixes
- Verify database credentials in your config file (e.g.,
wp-config.php) - Check that the database exists in MySQL Management
- Verify the database user is assigned to the database
- Try resetting the database password in DirectAdmin
- Check if MySQL is running — if not, contact support
Email Sending Fails
Causes
- Incorrect SMTP settings
- Sending limit reached
- IP blacklisted
- PHP mail() function disabled
Fixes
- Use SMTP authentication instead of PHP mail()
- Check your sending limits in DirectAdmin
- Verify SPF and DKIM records are set up correctly
- Use a plugin like WP Mail SMTP for WordPress
File Upload Errors
"File too large" or Upload Fails
- Check PHP settings via PHP Selector:
- Increase upload_max_filesize (e.g., 64M)
- Increase post_max_size (should be larger than upload_max_filesize)
- Increase max_execution_time (e.g., 300)
- Check disk quota — you may be out of space
SSL Certificate Errors
"Your connection is not private"
- Verify SSL is installed in DirectAdmin > SSL Certificates
- Check if the certificate has expired
- Ensure your site loads via
https://nothttp:// - Check for mixed content issues
White Screen / Blank Page
Causes
- PHP fatal error
- Memory limit exceeded
- Plugin conflict (WordPress)
Fixes
- Enable error display temporarily by adding to
wp-config.php:
php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);- Check
~/domains/yourdomain.com/public_html/wp-content/debug.log - Increase PHP memory_limit to 256M
- Disable plugins one by one to find the culprit
Related Articles
Need help? Contact our support team at {{SUPPORT_EMAIL}} or open a ticket at {{SUPPORT_URL}}.