Categories
Knowledge base

Troubleshooting Common DirectAdmin Errors

DirectAdmin is a powerful and user-friendly hosting control panel, but like any system, it can occasionally encounter errors. This guide covers some of the most common DirectAdmin errors and how to fix them efficiently.

1. Fixing Permission Errors in DirectAdmin

Error Message: Permission denied or 500 Internal Server Error

Cause:

  • Incorrect file or folder permissions.
  • Ownership conflicts after migrations.

Solution:

  1. Log in to your server via SSH.
  2. Navigate to the affected directory:
    cd /home/username/domains/yourdomain.com/public_html
  3. Set correct permissions for files and folders:
    find . -type d -exec chmod 755 {} \;
    find . -type f -exec chmod 644 {} \;
  4. Ensure the correct ownership:
    chown -R username:username /home/username/domains/yourdomain.com/public_html
  5. Restart your web server:
    systemctl restart httpd

2. Resolving DirectAdmin Login Issues

Error Message: Invalid login credentials or Session expired

Cause:

  • Incorrect username or password.
  • Browser cache issues.
  • Session timeout settings.

Solution:

  1. Clear your browser cache and try again.
  2. Reset your DirectAdmin password via SSH:
    passwd admin
  3. Check if the DirectAdmin service is running:
    systemctl status directadmin
  4. Restart DirectAdmin if necessary:
    systemctl restart directadmin

3. Fixing DNS Errors in DirectAdmin

Error Message: DNS_PROBE_FINISHED_NXDOMAIN or Server IP address could not be found

Cause:

  • Incorrect DNS settings.
  • Nameservers not properly configured.

Solution:

  1. Ensure your domain is pointing to the correct nameservers.
  2. Verify the DNS records in DirectAdmin:
    • Go to DNS Management in DirectAdmin.
    • Check A records, CNAME records, and MX records.
  3. Restart the DNS service:
    systemctl restart named
  4. Flush your local DNS cache:
    systemctl restart network.service

4. Fixing Email Sending/Receiving Issues

Error Message: SMTP connection error or Emails not being delivered

Cause:

  • Incorrect SMTP settings.
  • Firewall blocking ports.

Solution:

  1. Verify that SMTP settings match your mail provider’s recommendations.
  2. Check if required email ports (25, 465, 587) are open:
    netstat -tlnp | grep :25
  3. Restart Exim (Mail Server):
    systemctl restart exim

5. Resolving Database Connection Issues

Error Message: Error establishing a database connection

Cause:

  • Incorrect database credentials.
  • MySQL service not running.

Solution:

  1. Verify database credentials in the configuration file (wp-config.php, config.php).
  2. Restart the MySQL service:
    systemctl restart mysqld
  3. Check MySQL status:
    systemctl status mysqld
  4. Repair the database if necessary:
    mysqlcheck -r database_name

Conclusion

Troubleshooting DirectAdmin errors can be simple if you follow the right steps. Whether you’re dealing with permission errors, login issues, DNS failures, or database problems, this guide provides quick fixes to keep your website running smoothly.

For expert DirectAdmin hosting support, visit xldomein.com!

Calendar

February 2025
M T W T F S S
 12
3456789
10111213141516
17181920212223
2425262728  

Categories