• Resolved lyz96

    (@lyz96)


    I have All In One WP Security installed, but whenever I try to do anything which entails it writing to .htaccess then it fails with “Could not write to the .htaccess file. Please check the file permissions.”

    However, the .htaccess permissions appear fine (even WP Security says so in the filesystem security tab), and are set to 644, and the root directory (i.e. the main WP directory in which .htaccess resides) is 755.

    Any assistance would be much appreciated. Thanks!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @lyz96

    A permission of 644 means that the user that owns the file/folder will have read/write permissions, if your file has permissions of 644, and is not owned by www-data (or whatever user server runs) then Apache will only have read access. How exactly you fix this depends on what level of access you have to the server, who else has access to the server, and how paranoid you are about security.

    You need to do is either change the user-owner or group-owner of the file/files to the account used by Apache ( server user).

    Regards

    Thread Starter lyz96

    (@lyz96)

    How to do that?

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @lyz96,

    Please contact your hosting provider with the issue, they might only have rights to do it.

    Also, it depends on the server and the directory path of the site being run.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Could not write to the .htaccess file. Please check the file permissions.’ is closed to new replies.