Installing WordPress on MAMP keeps a full local copy of a site on macOS, which is useful for theme work, plugin testing, content imports, and configuration changes that should be proven locally before they touch a hosted environment.
MAMP provides a local Apache or Nginx web server, MySQL, and PHP from one app, and the active web root is controlled from MAMP → Preferences → Server. Current MAMP documentation still uses /Applications/MAMP/htdocs as the default document root and uses ports 8888 for the web server and 8889 for MySQL in the default configuration, although the ports can also be switched to the standard internet values.
Using a dedicated project folder under the MAMP document root keeps the WordPress files separate from the default start page and makes the local URL predictable. Current MAMP guidance for WordPress still uses the local database account root with password root and database host localhost, and MAMP also documents a Safari-specific caveat where the install can fail on ports 8888 and 8889 when the AdBlock extension is enabled.
Default document root: /Applications/MAMP/htdocs
The current MAMP Server preferences still list /Applications/MAMP/htdocs as the default location for local web files.
Apache: 8888 MySQL: 8889
MAMP can also switch the ports to 80 and 3306, so every later URL and database connection value should match the current port settings instead of assuming the defaults.
/Applications/MAMP/htdocs/wordpress-mamp
Keeping WordPress in its own subdirectory avoids overwriting the default MAMP landing page and leaves room for multiple local projects under the same stack.
Copy the contents of the extracted wordpress directory into wordpress-mamp so the local site opens at a short project URL instead of /wordpress/wordpress/.
The current MAMP WebStart page still exposes phpMyAdmin as the built-in route for creating the database before the WordPress installer runs.
Database name: wordpress_mamp Collation: utf8mb4_general_ci
The empty-database message No tables found in database. is expected immediately after creation because WordPress has not created its tables yet.
http://localhost:8888/wordpress-mamp/
If MAMP was switched to ports 80 and 3306, the same project opens at http://localhost/wordpress-mamp/ instead.
Current MAMP documentation warns that Safari with the AdBlock extension enabled can break the WordPress install when MAMP is using ports 8888 and 8889, so pause the extension for the install if that combination is in use.
Database Name: wordpress_mamp Username: root Password: root Database Host: localhost Table Prefix: wp_
MAMP's current WordPress FAQ still uses root, root, and localhost for the stock local database connection. If the local MySQL account, password, or port was changed earlier, use the current values instead.
If WordPress cannot write wp-config.php automatically, copy wp-config-sample.php to wp-config.php inside the project folder, reload the installer, and submit the same database values again.
Site Title: WordPress on MAMP Username: admin Password: choose-a-strong-password Email: admin@example.test
Dashboard: http://localhost:8888/wordpress-mamp/wp-admin/ Front page: http://localhost:8888/wordpress-mamp/
Dashboard -> Settings -> Permalinks -> Post name