Make a directory writable by Apache on macOS

·1 min read·paskov

Here’s a quick reference for making a directory writable by the Apache web server included with macOS.

  1. Set the directory’s owner to the _www user and its group to staff:

    sudo chown -R _www:staff path/to/folder/
  2. Set the permissions so the _www user can write to the directory without granting write access to other users:

    sudo chmod -R 755 path/to/folder