• Resolved Robert Eichhorn

    (@robert-eichhorn)


    I’ve read that the .htaccess file needs to be accessed by WP if you want the file to be automatically updated, and WP may need access to write to files in your /wp-content/ directory to enable certain functions. Do file permissions need to be set to allow WP to write to files or can WP write to files independent from file permissions? If file permissions need to be set then what category needs to be set – user, group, or world? It seems to me that if write permission is given to the world category then anyone could modify files.

Viewing 1 replies (of 1 total)
  • For WordPress to run smoothgly and safely:
    – all files permissions should be set to 644
    – all folder permissions should be set to 755

    You can lock down certain important files (e.g. wp-config.php, .htaccess) to read only by setting the permissions to 400 for those files only, but then you will have to manually update them or change the permissions to allow certain plugins to write to those files. e.g. if you install a caching or security plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Allowing WordPress to write to files’ is closed to new replies.