Problems with htaccess permissions
-
After much difficulty getting W3 Total Cache working on a client’s website at their own host, I set up a mirror of the site in a subdirectory of my own site, and I had everything running perfectly very quickly, using most of the auto-configure options in the plugin.
Then I set up a new hosting account for them, on the same server as the test site, and used Backup Buddy to move the functioning test site across. Now I can’t get the plugin to work correctly, as it keeps telling me there are problems with file ownership and permissions. I have manually entered the code for browser caching and page caching into the .htaccess file, but I still get the error message.
The basic issue seems to be that it can’t read / access the .htaccess file.
Here is the full error messages it is giving me, with my comments in italics:
W3 Total Cache Error: The plugin tried to edit, /.htaccess, but failed. Files and directories cannot be modified. Please review your file permissions. A common cause is .htaccess and /home/braveart/public_html/wp-content having different ownership or permissions.
I have checked this and everything has the same, correct owner.
File: /home/braveart/public_html/wp-config.php File permissions are 644 File owner: braveart:braveart
File: /.htaccess File permissions are 0, however they should be 644. File owner: root:root
I have checked this too, the file permissions are 644. The owner is braveart.
Directory: /home/braveart/public_html/wp-content File owner: braveart:braveart
Owner of current file: braveart:braveart
The files and directories have different ownership, they should have the same ownership.
The required directives for fancy permalinks could not be detected, please confirm they are available: Creating and editingAgain, I have checked and the code is in the .htaccess file, and all my permalinks are working just fine.
The following configuration changes are needed to ensure optimal performance:
To enable Minify, add the following rules into the server configuration file (/home/braveart/public_html/wp-content/cache/minify/.htaccess) of the site .
If permission allow this can be done automatically, by clicking here: .The following configuration changes are needed to ensure optimal performance:
To enable Disk enhanced page caching, add the following rules into the server configuration file (/.htaccess) of the site above the WordPress directives .
To enable Browser caching, add the following rules into the server configuration file (/.htaccess) of the site .I have tried uninstalling and reinstalling the plugin, but I still get the same messages.
Any clue what’s going on here? The two sites are running in exactly the same server environment.
The topic ‘Problems with htaccess permissions’ is closed to new replies.