Preguntas técnicas de características y respuestas a preguntas tipo qué es

How to Install WordPress on a Mac Locally in 2026 (No Server Needed)

Setting up WordPress on a Mac to work locally is one of those things that sounds way more technical than it actually is. You don’t need to rent a server, you don’t need a hosting plan, and you definitely don’t need to be a sysadmin. You just need a local server stack, a database, and about 20 minutes of patience.

I’ve done this dance more times than I care to admit, and I’ll tell you straight: MAMP is still the easiest route in 2026, even with newer tools breathing down its neck. Let me walk you through how to Install WordPress on a Mac locally without the fluff.

Why Bother Running WordPress Locally on a Mac?

Running a local WordPress installation on your Mac means you get a full sandbox. You can break things, test plugins, fiddle with themes, and nothing goes live. No visitors see your mistakes. No Google indexes your half-finished homepage.

The local WordPress environment is also ridiculously fast because it’s running off your SSD, not a remote server. Page loads happen in milliseconds. That speed changes how you develop — you iterate faster and experiment more.

And the biggest reason: you can work offline. On a plane, in a coffee shop with dodgy Wi-Fi, wherever. Your Mac is the server.

What You Actually Need Before You Start

Before installing WordPress on a Mac locally, you need three things working together: a web server (Apache), a database (MySQL), and PHP. That trio is what MAMP bundles for you.

You also want macOS Sonoma or later ideally, though MAMP runs fine on older versions too. And make sure you’ve got at least a couple of gigabytes free on your drive — WordPress itself is small, but plugins and uploads add up.

If you’re on an Apple Silicon Mac (M1, M2, M3, M4), grab the native ARM build of MAMP. The Intel version runs through Rosetta and it’s noticeably slower. This is one of those small details that saves you a headache later.

Step-by-Step: Install WordPress on a Mac with MAMP

1. Download and Install MAMP

Head to the official MAMP site and grab the free version. The .dmg file will download, you open it, and you drag the MAMP folder into your Applications folder. That’s it. No installer wizard, no license key.

Open MAMP from Applications and hit Start Servers. You’ll see two green lights: Apache and MySQL. If they’re green, you’re in business. If Apache refuses to start, something else is hogging port 8888 — more on that later.

2. Download WordPress

Go to wordpress.org/download and grab the latest zip. Unzip it. You’ll get a folder called wordpress.

Now move that folder into /Applications/MAMP/htdocs/. This htdocs folder is your local server’s root — anything you put here becomes accessible through your browser. Rename the folder if you want a cleaner URL, like mysite instead of wordpress.

3. Create the Database in phpMyAdmin

Back in MAMP, click Open Start Page. That opens a browser window with MAMP’s control panel. Click phpMyAdmin.

In phpMyAdmin, hit the Databases tab, type a name (something like wp_local), pick utf8mb4_general_ci as the collation, and click Create. Done. You’ve got your empty database waiting.

4. Run the WordPress Installer

Open your browser and go to http://localhost:8888/wordpress (or whatever you renamed the folder to). You’ll hit the WordPress setup screen.

When it asks for database details, enter:

  • Database name: wp_local (or whatever you picked)
  • Username: root
  • Password: root
  • Database host: localhost
  • Table prefix: leave as wp_ unless you have a reason to change it

Hit submit, fill in your site title, admin username, password, and email. Boom — you’ve got a working local WordPress install on your Mac.

MAMP vs Local vs Valet: Which One Should You Actually Use?

MAMP is the classic choice and it works. But in 2026, I’d argue Local by Flywheel is the better pick for most people. It’s free, it spins up a WordPress environment in one click, and it handles SSL certificates for local domains automatically. That last bit matters if you’re testing anything that requires HTTPS.

Valet is for the terminal-comfortable crowd. If you live in the command line, Valet is gorgeous — it’s lightweight and fast. But it requires Homebrew, Composer, and a willingness to debug PHP versions manually. Not for beginners.

Vagrant is the heavyweight. It’s perfect if you need to replicate a specific production server environment exactly. But for a personal blog or a theme you’re building? Overkill. Way overkill.

My take: start with MAMP if you want to understand what’s happening under the hood. Switch to Local if you just want to get work done.

Common Problems and How to Fix Them

Apache won't start? Another service is sitting on port 8888 (or 80). In MAMP, go to Preferences → Ports and change Apache to 8889 or something else unused. Restart servers.

MySQL won't start? Usually it’s a corrupted database file from a forced shutdown. Delete /Applications/MAMP/db/mysql and restart — you’ll lose your databases, but MAMP will rebuild the system tables.

Can’t connect to the database during WordPress setup? Double-check you’re using localhost and not 127.0.0.1 or your IP. MAMP sometimes behaves oddly with those.

Working Locally: What You Can and Can’t Do

You can install plugins, switch themes, write posts, test forms, and even run WooCommerce locally. What you can’t do is expect your local WordPress site to be publicly accessible. It’s a development environment, period.

When you’re ready to go live, you’ll migrate the site — either manually via FTP and a database export, or with a plugin like All-in-One WP Migration or Duplicator. Don’t try to serve your local install directly to the internet. It’s not built for that, and the security holes are real.

Also: keep your local WordPress and plugins updated. It’s tempting to ignore updates in a sandbox, but old plugin code is where vulnerabilities hide. Even locally, you don’t want malicious code running on your Mac.

Back up your local site regularly. Export the database from phpMyAdmin and copy the htdocs folder somewhere safe. Losing a week of local development because your drive died is a special kind of pain.

Quick Answers for People in a Hurry

Is local WordPress safe for real projects? For development, yes. For a live site, no. You need real hosting.

Can I access my local site from another device? Yes, but you’ll need to use your Mac’s local IP address (like 192.168.1.x) and adjust Apache’s config to listen on all interfaces. Fiddly, but doable.

How do I uninstall it? Delete the wordpress folder from htdocs, and drop the database in phpMyAdmin. Clean.

What are MAMP’s default credentials? Username root, password root. That’s it.

That’s the whole game. Install MAMP, drop WordPress in htdocs, create a database, run the installer. You now have a full WordPress install on your Mac that you can break, rebuild, and learn from without any consequences.