Troubleshooting
When something is not working: checks and fixes.
68 guides · page 2 of 4
Fix 403 Forbidden in Nginx
Nginx returns 403 Forbidden when it will not serve a file or folder. Work through the usual causes, from a missing index file to permissions, deny rules and SELinux.
Fix 404 Not Found errors on cPanel hosting
Find why pages return 404 Not Found on a cPanel site: wrong document root, case-sensitive file names, missing rewrite rules, moved pages, and custom error pages.
Fix 502 Bad Gateway in Nginx
A 502 Bad Gateway means Nginx could not get a valid answer from PHP-FPM or your app. Read the error log, then check the backend service, socket path, permissions and ports.
Fix 504 Gateway Timeout in Nginx
A 504 Gateway Timeout means PHP or your app took longer to answer than Nginx was willing to wait. Find the slow request, raise the right timeouts consistently, and fix the root cause.
Fix a 500 Internal Server Error in WordPress
Troubleshoot a WordPress 500 Internal Server Error on cPanel: check error logs, reset .htaccess, fix PHP settings and permissions, and isolate plugins or the theme.
Fix a 500 Internal Server Error on cPanel hosting
Find and fix the cause of a 500 Internal Server Error on any cPanel site: broken .htaccess rules, wrong permissions, PHP version or memory problems and script errors.
Fix a Docker container that exits immediately
Find out why a Docker container stops right after it starts. Read logs and exit codes, then fix missing environment variables, a wrong command, background processes and restart loops.
Fix Apache failed to start (AH00072 port in use and config errors)
When Apache will not start, run a config test, read journalctl, and fix the usual causes - AH00072 port already in use, syntax errors, missing certificates and the AH00558 ServerName warning.
Fix AutoSSL not issuing certificates in cPanel
Work out why cPanel AutoSSL fails for a domain: DNS not pointing here, DCV errors,.htaccess redirects, CAA records and rate limits, using the AutoSSL log in WHM.
Fix Caddy certificate errors and ACME failures
Diagnose why Caddy cannot get a TLS certificate. Check DNS, open ports 80 and 443, read Caddy's logs, handle Cloudflare proxying and rate limits, and test safely with the staging CA.
Fix common Node.js errors: EADDRINUSE, 503, out of memory, module not found
Fix the Node.js errors hosting customers see most: port already in use (EADDRINUSE), 503 on cPanel, JavaScript heap out of memory and Cannot find module.
Fix common SSL errors in the browser
Understand and fix common browser SSL errors: name mismatch, expired or untrusted certificates, incomplete chains, protocol errors and HTTPS redirect loops.
Fix Docker daemon not starting
Docker service failed to start? Read the real error with journalctl, then fix an invalid daemon.json, conflicting options, storage driver and overlay errors, a full disk or iptables problems.
Fix ERR_TOO_MANY_REDIRECTS: diagnose a redirect loop
Trace an ERR_TOO_MANY_REDIRECTS loop across Nginx, Apache, WordPress and Cloudflare, and find the single rule that keeps sending traffic back to itself.
Fix file upload size errors on cPanel (upload_max_filesize, 413)
Fix 'file exceeds upload_max_filesize', 413 Request Entity Too Large and failed uploads on cPanel by raising PHP limits correctly, or using FTP for very large files.
Fix MySQL or MariaDB error 1045: Access denied for user
Error 1045 means MySQL or MariaDB rejected the login. Find which user and host the client asked for, fix the password or grants, and reset a lost root password safely.
Fix Nginx 404 errors with try_files for pretty URLs
Pretty URLs return 404 on Nginx when nothing routes them to your app. Add the right try_files line for WordPress, Laravel or a single-page app, and avoid root and alias mistakes.
Fix Nginx 413 Request Entity Too Large
Nginx returns 413 Request Entity Too Large when an upload is bigger than client_max_body_size. Raise the limit for one site or the whole server, match PHP's limits, and test.
Fix Nginx failed to start: address already in use
Nginx will not start when another program already holds port 80 or 443. Find what is using the port with ss, stop or move it, fix duplicate listen lines, then start Nginx.
Fix PHP "Allowed memory size exhausted" fatal error
PHP stops a script when it tries to allocate more memory than memory_limit allows. Find the script that hit the limit, raise the limit in the right place, and fix the cause.
Other topics
- Getting startedYour first hour with a new server: access, logins and basics.69 guides
- cPanelFiles, databases, email, domains and every cPanel tool, step by step.37 guides
- WHM & resellingWHM, packages, reseller accounts, WHMReseller and running a hosting brand.49 guides
- WordPressInstall, secure, speed up, migrate and fix WordPress sites.40 guides
- Email & webmailMailboxes, webmail, forwarders, spam filters and email delivery.37 guides
- DomainsRegistering, transferring and managing domains and nameservers.20 guides
- SSL certificatesFree AutoSSL, Let's Encrypt, paid certificates and HTTPS.19 guides
- CloudLinuxCloudLinux setup and use: LVE limits, CloudLinux Manager, CageFS and PHP/Node.js selectors.31 guides
- LiteSpeedLiteSpeed Web Server, LSCache and the LiteSpeed Cache plugin: install, settings and tuning.30 guides
- Imunify360Malware scanning, firewall and proactive defence with Imunify360.23 guides
- SoftaculousInstall, update, clone and back up apps with Softaculous.23 guides
- WP SquaredcPanel's WordPress platform: sites, plugins, staging and backups.9 guides
- SitePadBuild and publish websites with the SitePad builder.9 guides
- SitejetDesign, edit and publish sites with the Sitejet builder.9 guides
- WHMResellerAlpha and master resellers with WHMReseller: install, setup and use.12 guides
- VirtFusionInstall, set up and manage VirtFusion: hypervisors, packages, servers and WHMCS integration.7 guides
- VirtualizorManage your VPS with Virtualizor: power, OS reinstall, VNC, IPs and backups.30 guides
- PleskWebsites, email, databases and settings in the Plesk panel.52 guides
- DirectAdminUsers, domains, email and reseller tools in DirectAdmin.40 guides
- WHMCSBilling, automation, products and client management with WHMCS.51 guides
- Control panelscPanel & WHM, Plesk, DirectAdmin and other panels on your VPS.106 guides
- SecurityKeys, passwords, firewalls and keeping a server patched.115 guides
- Networking & DNSIP addresses, reverse DNS, ports and traffic.34 guides
- Websites & appsWeb servers, WordPress, PHP, Node.js, SSL and app hosting.52 guides
- DatabasesMySQL, MariaDB, PostgreSQL, Redis and MongoDB on a VPS.64 guides
- Billing & accountInvoices, renewals, the client area and your account.9 guides
- TroubleshootingWhen something is not working: checks and fixes.68 guides
- Linux VPSSSH, packages, services and everyday Linux administration.70 guides
- Windows VPS & RDPRemote Desktop, Windows Server settings and Admin RDP tips.58 guides
- Docker & DevOpsContainers, Git deploys, automation, monitoring and backups.58 guides
Still stuck?
Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.
