Last Updated: February 25, 2016
·
806
· pixel67

Wordpress permissions on local dev machine

I am developing a custom Wordpress Theme for a client. I haven't used WP in a few years and had problems with uploading images and themes to my local install of Wordpress.

I thought this might help others that are getting the
403 forbidden error when trying to upload to the WP installation.

Add this to your wp-config file

define('FS_METHOD', 'direct');

Add this to your username.conf file

 <Directory "/Users/username/Sites/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

WordPress sites collect scripts from themes, plugins, and tag managers. A compromised plugin update can add a skimmer to every page without a change in your own templates.

Security insights from Cside