cnbsorg
Forum Replies Created
-
The problem was SELinux in case anyone is interested.
Turning it off with “setenforce permissive” did the trick (thanks to Wordfence Premium Support).
After finishing the firewall optimization, SELinux can be turned on again with “setenforce enforcing”.
Hope it helps someone.
What will happen if I just crate an empty wordfence-waf.php in the root myself? will it break stuff?
- This reply was modified 7 years, 2 months ago by cnbsorg.
Tried it, nothing changed in the Diagnostics Tool:
Filesystem Ability to read/write various files. Checking if web server can read from ~/plugins/wordfence OK Checking if web server can write to ~/plugins/wordfence OK Checking if web server can read from ~/wp-content/wflogs OK Checking if web server can write to ~/wp-content/wflogs OKStill getting the same error..
- This reply was modified 7 years, 2 months ago by cnbsorg.
I deactivated Wordfence after checking โDelete Wordfence tables and data on deactivationโ, then deleted it from the Plug ins admin menu, deleted few “wf” and “wordfence” related entries from “wp_options” table, reinstalled again – got the same error.
Time to give up? ๐
Oh my bad, now I see more entries with “wordfence” prefix, will try to delete everything one more time.
The only entry related to WF in this table is “wf_plugin_act_error” and it has no value (I didn’t deleted WF, just checked this table).
Can we please go back to debugging the problem itself? ๐
We were unable to create the wordfence-waf.php file in the root of the WordPress installation.This means that new files cannot be written to the main folder of your site.The /var/www/html/ folder owner is apache, same as noted in WF Diagnostics Tool Process Owner, /var/www/html/ is 775.
Other plugins write to this directory with no problems, for example I can see .htacess file was modified by the cache plugin.
What could it be?
Maybe Wordfence is trying to write to a different category?Please advice how to debug, I don’t have any ideas left..
Thank you.
- This reply was modified 7 years, 2 months ago by cnbsorg.
Anyone? ๐
I also cleared all cache, and tried from another unused browser, still getting the same message.
I deactivated Wordfence after checking “Delete Wordfence tables and data on deactivation”, then deleted it from the Plug ins admin menu.
Checked the file system, both WordFence and wflogs directories were gone.
I also checked phpmyadmin, all wf tables were deleted, so I didn’t have to delete anything manually.Installed it again, clicked on “Optimize Wordfence Firewall”, and got exactly the same message again.
Any idea how to debug / proceed from here?
Thank you.
Hi (sorry for the late reply),
I do have access to phpMyAdmin, should I remove WF again and make sure all its files are removed + all db tables are removed?
Any special instructions? or just delete the obvious? (DB tables and WF directory, if anything last after I delete the plugin from WordPress admin panel).
I Will try it now and reply again, please let me know if special attention is needed for anything here.
Thank you.
Thank you.
Just to note – I added the cache plugin just yesterday, this wordfence thing is not working for like 2 weeks.
Also the cache is just for the front-end, I don’t see how it can be related, but it seems you know your stuff – will try exactly what you said and will reply here again (tomorrow).
Thank you for your time!
Yeah, from inside WordPress of course, Plugins -> Add new plugin -> Search for Wordfence
- This reply was modified 7 years, 2 months ago by cnbsorg.
I did exactly what you said, but still getting
We were unable to create the wordfence-waf.php file in the root of the WordPress installation. It's possible WordPress cannot write to the wordfence-waf.php file because of file permissions. Please verify the permissions are correct and retry the installation.“WAF auto prepend active” is still on “No”.
Any ideas left? ๐
- This reply was modified 7 years, 2 months ago by cnbsorg.
Of course when I press on “Optimize the Wordfence Firewall” as suggested in the link you mentioned – I just get the same message of “Unable to create the wordfence-waf.php”
WAF auto prepend active No
WAF log path ~/wp-content/wflogs/
WAF subdirectory installation No
wordfence-waf.php path (empty)
WAF File Permissions 0660 – using templateShould I try to remove it completely and reinstall? Honestly this is above my knowledge ๐
Thank you.