StarDomain

Common DirectAdmin Errors and Fixes

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 .htaccess rules
  • PHP errors in your scripts
  • Incorrect file permissions
  • Corrupted .htaccess file

Fixes

  1. Rename `.htaccess` temporarily:
bash
mv .htaccess .htaccess.bak

If the site loads, the issue is in your .htaccess file.

  1. Check error logs in DirectAdmin under Error Log or via SSH:
bash
tail -50 ~/domains/yourdomain.com/logs/error.log
  1. 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.php or index.html file
  • Directory listing disabled
  • IP blocked by firewall
  • Incorrect file permissions

Fixes

  1. Ensure an index file exists in the directory
  2. Check file permissions (directories: 755, files: 644)
  3. 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 .htaccess rewrite rules

Fixes

  1. Verify the file exists in the correct directory
  2. For WordPress, go to Settings > Permalinks and click Save to regenerate .htaccess
  3. Check your .htaccess for correct rewrite rules

508 Resource Limit Reached

Causes

  • Your account has exceeded CloudLinux resource limits (CPU, memory, or entry processes)

Fixes

  1. Check resource usage in DirectAdmin under Resource Usage
  2. Enable caching to reduce PHP execution
  3. Optimize database queries and images
  4. Consider upgrading your hosting plan
  5. Check for runaway scripts or bot traffic

Database Connection Error

Common Messages

  • "Error establishing a database connection"
  • "Access denied for user"
  • "Unknown database"

Fixes

  1. Verify database credentials in your config file (e.g., wp-config.php)
  2. Check that the database exists in MySQL Management
  3. Verify the database user is assigned to the database
  4. Try resetting the database password in DirectAdmin
  5. 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

  1. Use SMTP authentication instead of PHP mail()
  2. Check your sending limits in DirectAdmin
  3. Verify SPF and DKIM records are set up correctly
  4. Use a plugin like WP Mail SMTP for WordPress

File Upload Errors

"File too large" or Upload Fails

  1. 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)

  1. Check disk quota — you may be out of space

SSL Certificate Errors

"Your connection is not private"

  1. Verify SSL is installed in DirectAdmin > SSL Certificates
  2. Check if the certificate has expired
  3. Ensure your site loads via https:// not http://
  4. Check for mixed content issues

White Screen / Blank Page

Causes

  • PHP fatal error
  • Memory limit exceeded
  • Plugin conflict (WordPress)

Fixes

  1. Enable error display temporarily by adding to wp-config.php:
php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
  1. Check ~/domains/yourdomain.com/public_html/wp-content/debug.log
  2. Increase PHP memory_limit to 256M
  3. Disable plugins one by one to find the culprit

Need help? Contact our support team at {{SUPPORT_EMAIL}} or open a ticket at {{SUPPORT_URL}}.