简体   繁体   English

WordPress htaccess不断更改为chmod 444和777

[英]WordPress htaccess keeps changing to chmod 444 and 777

After every WordPress release appears on my admin panel, my website .htaccess file becomes chmod 444 or 777 and overwrite my htaccess settings. 在我的管理面板上出现每个WordPress版本之后,我的网站.htaccess文件将变成chmod 444或777,并覆盖我的htaccess设置。 I try to change the chmod and edit it from ftp and from the console. 我尝试更改chmod并从ftp和控制台中对其进行编辑。 But It keeps returning to chmod 444 or 777. The work-around solution is that i have to update wordpress from the administration panel, then I can change the .htaccess chmod to 644 and edit it without any problem. 但是它一直返回到chmod 444或777。解决方法是我必须从管理面板更新wordpress,然后才能将.htaccess chmod更改为644并对其进行编辑而没有任何问题。

Please help me resolve this issue. 请帮助我解决此问题。

Thank you, 谢谢,

升级WP的正确方法是通过管理面板...。如果下载安装并手动完成所有操作,则需要检查用户的umask ...这将对新文件应用权限。可能是权限更改为444的其他原因,但真正的解决方案是通过管理面板进行升级

Solved the issue by renaming wp-admin to wp-admin_old and wp-includes to wp-includes_old . 通过将wp-admin重命名为wp-admin_old并将wp-includes重命名为wp-includes_old解决了该问题。 Then I uploaded latest and fresh folders from the official website: https://wordpress.org/ . 然后,我从官方网站https://wordpress.org/上传了最新的文件夹。 DO NOT FORGET TO DELETE 'wp-admin_old' & 'wp-includes_old'! 不要忘记删除“ wp-admin_old”和“ wp-includes_old”! Because they have a hidden backdoor that keeps changing your wordpress settings. 因为它们具有隐藏的后门,可以不断更改您的wordpress设置。 That's why renaming them then deleting them is the only way to get rid of malware. 因此,重命名它们然后删除它们是摆脱恶意软件的唯一方法。

This probably happened due to an infection, which may have changed more than the core Wordpress files. 这可能是由于感染引起的,它的变化可能比核心Wordpress文件还多。 Simply updating the wp-includes directory may not permanently solve the problem: https://wordpress.stackexchange.com/a/191570/20963 仅更新wp-includes目录可能无法永久解决问题: https : //wordpress.stackexchange.com/a/191570/20963

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM