.htaccess files keep resetting to 444 instead of 755
Have 2 Wordpress sites on VPS server. One install is on public folder, other in a subfolder.
At times, I get a message on backend that WPRocket cannot write to htaccess file because it does not have the permission, so when I check the htaccess files, they are set to 444. I set them to 755, but they reset to 444 after some time.
I have ran Sucuri malware and found nothing wrong, also deleted Wordfence security plug in which is said to sometime cause this.
At times, I get a message on backend that WPRocket cannot write to htaccess file because it does not have the permission, so when I check the htaccess files, they are set to 444. I set them to 755, but they reset to 444 after some time.
I have ran Sucuri malware and found nothing wrong, also deleted Wordfence security plug in which is said to sometime cause this.
I am coming across some infected websites that the ,htaccess file permissions set to 444. My suggestion is strip the website down to bare needed. then check for unneeded/not usual wordpress files in the wp-content folder delete them then reinstall wordpress through dashboard
Thanks for commenting. To add, consider Cerber Security and BBQ: Block Bad Queries.
Also, check out our 10 Ways to Harden Your VPS Hosting.