Correct folder permissions?

For starters, the WordPress Codex has a wealth of information on this very topic. For the sake of brevity that should take care of most of it; however, there are some relievant points that should be made:

  • If you do not wish WordPress (essentially PHP) to have access to the file system with the exception of dynamic static assets such as images or cache then leaving your permissions as is and only changing the ownership of the wp-content/uploads and wp-content/cache folders to be the same user|group that runs PHP should be sufficient. Please keep in mind that some plugins require the wp-content folder be made writeable, but in such cases typically you will be notified. In some cases, this may require assigning 755 permissions.
  • You will need to manually upload any relivant files during upgrade of core or plugins that have updates available. This will break the default mechanism of auto updates for core and the streamlined maintenance mode functionality utilized during the update process (both core and plugins).
  • Security of your server is paramount, I would suggest also thoroughly evaluating the items outlined in Hardening WordPress to ensure that you are running secure environment.

error code: 523