Fixing WordPress Permissions

Problem: Setting your site’s WordPress permissions according to the instructions found on the official Changing File Permissions page results in the dreaded FTP credentials prompt (“To perform the requested action, WordPress needs to access your web server”).

How to Reproduce: Setting the owner as a user other than the web server user, and trying to manage permissions using group membership by giving write permissions to the web server user’s group. For example:

Reason: WordPress (in /wp-admin/includes/file.php) checks the file owner to determine whether direct modification is possible, ignoring group membership entirely:

Solution: Add a line near the end of your wp-config.php file to force WordPress to use direct upgrades, bypassing the get_filesystem_method check entirely:

Join the Conversation

1 Comment

  1. Dear Kevin Fodness,

    We, at CWTS, Leiden University, would be very grateful if you would allow us to use the picture
    ‘’ on our website as illustration for our new course ‘Minor Science and Technology in Society (StiS)’

    With kind regards,

    Bert van der Wurff – web editor CWTS

Leave a comment

Your email address will not be published. Required fields are marked *