Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Are you experiencing a 500 Internal Server Error when trying to load your website, Plesk, or cPanel?
Do you see a Database DB query failed: SQLSTATE[HY000] error?
One of the most common causes of a 500 error is that the server has run out of disk space or inodes. Follow these troubleshooting steps to diagnose and resolve the issue.
Before diagnosing the issue, ensure you can still connect to the server. 500 errors do not typically affect SSH access, so if you’re unable to SSH in, the problem might be more severe (e.g., system crash, network failure).
For Linux servers, use:
ssh root@yourserver.com
(Replace yourserver.com
with your actual server hostname or IP address.)
A full disk can prevent your server from writing temporary files, logs, or database queries, leading to a 500 error.
df -h
/var
, /tmp
, /home
, or /
(root).rm -rf /path/to/unwanted/files
find /var/log -type f -name "*.log" -delete
Even if the disk isn’t full, running out of inodes (file allocation structures) can also cause 500 errors.
df -i
find / -xdev -type d -exec du -S {} + | sort -rh | head -10
find /tmp -type f -atime +5 -delete
If you’re running Plesk, you can use its built-in repair tools to clear temporary files.
Access it via:
https://yourhostname:8443/repair/
This tool can automatically clean up temporary files and fix common issues.
List existing backups:
/usr/local/psa/admin/bin/pmm-ras --get-dump-list | grep .xml
Delete old backups (replace with the actual backup filename):
/usr/local/psa/admin/bin/pmm-ras --verbose --debug --delete-dump --dump-specification=backup_info_YYYYMMDD.xml --session-path=/var/log/plesk/PMM
If SSH access is available, you can also connect via SFTP (port 22) using an FTP client like FileZilla to navigate and remove unwanted files.
Alternatively, use cPanel’s File Manager or Plesk’s File Manager to delete files if you still have access to the control panel.
After clearing space, restart the web services to apply changes.
systemctl restart apache2
or
systemctl restart httpd
systemctl restart nginx
service psa restart
Once disk space is cleared and services are restarted, check if your website or control panel loads correctly.
tail -n 50 /var/log/apache2/error.log
tail -n 50 /var/log/nginx/error.log
By following these steps, you can diagnose and fix common causes of 500 errors related to disk space and inode limits. If you’re still having trouble, check for PHP configuration issues, permission errors, or database corruption.
Let me know if you need further assistance! 🚀