

#ERROR ESTABLISHING DATABASE CONNECTION MAMP WORDPRESS CODE#
Step 1: Check the PHP Error Log and Resolve Code Problems You should follow these steps in order, and only proceed to the next fix if the problem persists. In this section, we’ll walk through troubleshooting each of the potential causes of an Error 500 on a MAMP WordPress installation. Looking for a powerful tool for local WordPress development? DevKinsta features one-click site creation, built-in HTTPS, powerful email and database management tools, and more. In these cases, checking the PHP error logs for your installation will often reveal the file that’s causing the issue, as well as the specific problem with the code. This is often the result of misconfigured files or incorrect code. This file handles server configuration, so issues there can cause a variety of problems.Īnother possible source specific to errors on MAMP comes into play when your site encounters a PHP fatal error. With WordPress in general, the most common causes of an HTTP 500 error are plugin incompatibilities and a corrupt or missing. If it happens on a MAMP installation it can be even trickier since there are more potential causes. This is a frustrating error, primarily because it’s so vague. So what you’re seeing may not look exactly like the image above, but the basics are the same.

The error’s presentation can vary based on the specific browser being used, and some websites have custom error pages of their own. Essentially, the server wasn’t able to load the page for one reason or another, but it also couldn’t determine a more specific error code to use:

The Hypertext Transfer Protocol (HTTP) 500 Internal Server Error is a message that can sometimes appear when you’re attempting to load a page.
