Skip to content

Instantly share code, notes, and snippets.

@dionysia
Created July 11, 2013 00:51
Show Gist options
  • Save dionysia/5971592 to your computer and use it in GitHub Desktop.
Save dionysia/5971592 to your computer and use it in GitHub Desktop.
If you've ever run into the problem of being asked for FTP everytime you want to upload or install something and you're sick and tired of always running chown or changing permissions, this fix to your wp-config.php will help everytime to ensure your php user can handle all of this stuff... From Michael Cabral Poubel Bastos, Advanced Wordpress on FB
<!-- add tp wp-config.php -->
define( 'FS_METHOD', 'direct' );
define( 'FS_CHMOD_DIR', 0755 );
define( 'FS_CHMOD_FILE', 0755 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment