If you develop WordPress (or plain PHP) on a Mac and keep hitting that “Connection Information” / file-permission wall on localhost, the cause is usually simple: Apache’s httpd runs as _www, not as your macOS user. Here is how I fix macOS localhost permissions for Apache on a single-user machine.
I only do this on personal laptops where I am the only account that matters. On a shared Mac, keep the default _www user and fix folder ownership another way.

Why macOS Localhost Permissions for Apache Break
Your site files live under your home directory. The web server process does not. When PHP or WordPress tries to write (updates, uploads, wp-config edits), the mismatch shows up as permission prompts or failed writes.
Related Apache notes on this blog: redirecting HTTP to HTTPS, password protect a folder with .htaccess, and exact URL redirects when you change domain name.

Step 1: Read Your uid and gid
In Terminal:
idYou get a line like:
uid=501(admin) gid=20(staff)Note the primary user name inside uid=…(name) and the group inside gid=…(name). Those are the values you will paste into Apache’s config.

Step 2: Edit httpd.conf User and Group
Open the system Apache config (password required):
sudo nano /etc/apache2/httpd.confPress Ctrl+W, search for User (with the trailing space), and jump to the User/Group directives. Comment out the stock values with #, then set your account:
#User _www
#Group _www
User admin
Group staffUse your names from the id output—not necessarily admin / staff.

Step 3: Restart Apache
sudo apachectl restartReload your local site. httpd should now run as your account, which is usually enough to clear the macOS localhost permissions for Apache friction on personal machines.
Notes I Keep in Mind
System Apache vs Homebrew. This path is for Apple’s /etc/apache2/httpd.conf. Homebrew Apache uses a different prefix—edit that config instead if that is what you start with brew services.
Security. Running the web server as your login user widens what a compromised local script can touch. Fine for solo localhost; do not copy this onto a public server.
macOS updates. Major OS upgrades sometimes restore default Apache configs. If permissions break again after an update, re-check the User/Group lines.
After the restart I usually touch a plugin upload or save a permalinks flush once, just to confirm write access works under the new macOS localhost permissions for Apache setup.
FAQ: macOS Localhost Permissions for Apache
Is this the same as chmod 777?
No. You are aligning the Apache process user with your account instead of opening every file to the world.
apachectl restart failed—what now?
Run sudo apachectl configtest and fix any syntax errors in httpd.conf before restarting again.
Still getting permission errors?
Confirm the vhost DocumentRoot points at the folder you are editing, and that parent directories allow execute/traverse for your user.
Should I use Local or MAMP instead?
Often yes for WordPress-only work. I still use system Apache for quick PHP experiments, which is why this macOS localhost permissions for Apache note stays useful.
Conclusion
To fix macOS localhost permissions for Apache on a solo Mac: read your id, set User/Group in httpd.conf, restart with apachectl, and retest writes. Keep the change local—and expect to revisit the config after big macOS upgrades.

