SH10151
Forum Replies Created
-
Forum: Plugins
In reply to: [BackUpWordPress] Does the backup directory name ever change?Great, thanks!
Found this thread:
Removed the reference in php.ini.
Wow, what a hassle.
Well, now I’m getting “PHP Fatal error: Unknown: Failed opening required ‘/usr/share/nginx/html/wordfence-waf.php’ (include_path=’.:/usr/share/php’) in Unknown on line 0” and a blank site…
So Wordfence doesn’t really disable itself when you tell it to in the WordPress plugins section?
Going to have to start grepping through lots of files searching for what is calling “wordfence-waf.php”…
Thanks for the reply, wfasa.
I removed the .user.ini file as well as wordfence.waf.php that were still in my webserver’s doc root directory. I don’t have a .htaccess file, though, since I’m running Nginx.
Thanks, hopefully this will do it!
Bump. Any chance you can help me remove FontAwesome from the Chimpy plugin? I really don’t need it and it is a pretty big file I’d like to get off my web pages…
Ok, I changed my cron from:
*/15 * * * * /usr/bin/php /usr/share/nginx/html/wp-cron.php > /dev/null 2>&1
to
*/15 * * * * curl https://www.domain.com/wp-cron.php > /dev/null 2>&1
But I’m still seeing the errors:
Aug 18, 10:45:46 WARNING: [pool www] child 2624 said into stderr: “NOTICE: PHP message: Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.”
Aug 18, 10:45:31 WARNING: [pool www] child 2623 said into stderr: “NOTICE: PHP message: Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.”
Aug 18, 10:45:30 WARNING: [pool www] child 2624 said into stderr: “NOTICE: PHP message: Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.”
Aug 18, 10:45:30 WARNING: [pool www] child 2623 said into stderr: “NOTICE: PHP message: Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.”
Aug 18, 10:45:30 WARNING: [pool www] child 2624 said into stderr: “NOTICE: PHP message: Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.”This could just be getting written when I am accessing the page (and causing wp-cron to run?). The strange thing about this is that I disabled Wordfence two days ago…
Why would WordPress still be trying to access this file after I disabled the plugin???
Well, I rebooted my server and the log entries above went away.
wfasa, I do like Wordfence, I just wish I could figure out why this was happening. Kinda renders WF useless if it can’t write to that file. I did see a few chmod()’s in WF’s crons, so I just suspected it was WF. I don’t have anything that would be doing this, and this is the only file on my server that has ever had its permissions changed without me doing it.
Well, WF is definitely still doing something, even after I disabled it in my list of Plugins:
[16-Aug-2016 13:46:35 America/Los_Angeles] Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.
[16-Aug-2016 13:46:59 America/Los_Angeles] Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.
[16-Aug-2016 13:47:36 America/Los_Angeles] Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.
[16-Aug-2016 13:48:10 America/Los_Angeles] Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.
[16-Aug-2016 13:48:11 America/Los_Angeles] Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.
[16-Aug-2016 13:48:34 America/Los_Angeles] Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.
[16-Aug-2016 13:49:56 America/Los_Angeles] Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.
[16-Aug-2016 13:50:00 America/Los_Angeles] Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.
[16-Aug-2016 13:50:05 America/Los_Angeles] Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.
[16-Aug-2016 13:50:12 America/Los_Angeles] Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.This is occurring with each page request made and occasionally without.
I don’t have a cron that would do anything with this file.Would love to remove FontAwesome – really don’t need it.
Please help!
Forum: Plugins
In reply to: [WP-FFPC] FFPC Debug info HTML comments questionBump, please help!
No replies. Well, I just disabled Wordfence for now…
Forum: Plugins
In reply to: [Contact Form 7] Easy way to remove the JS & CSS that is on every page?Nm, I did this, which worked:
https://contactform7.com/loading-javascript-and-stylesheet-only-when-it-is-necessary/Ok, thanks, Frank, I’ll look into that.
Again, very nice work on the plugin!Hi Frank, thanks for clarifying.
I’m using Amazon EC2 as my web server & CloudFront as my CDN. Any suggestions on how to keep a folder in sync?
In fact, on my WordFence Firewall page it says:
“We were unable to write to ~/wp-content/wflogs/ which the WAF uses for storage. Please update permissions on the parent directory so the web server can write to it.”
The permissions are open on those dirs to 775 (/usr/share/nginx/html, /usr/share/nginx/html/wp-content/, /usr/share/nginx/html/wp-content/wflogs/, and /usr/share/nginx/html/wp-content/wflogs/config.php), and all owned by ‘www-data:www’ – this is who both the webserver and PHP run as. This isn’t right.
What am I missing here?
Also, I just looked again and now somehow “rules.php” and “wafRules.rules” are now both owned by root, in addition to config.php (which I am constantly resetting to ‘www-data:www’). Yesterday they were owned by www-data:www…
-rw-rw—- 1 www-data www 40083 Aug 7 13:52 attack-data.php
-rw-rw—- 1 root root 888 Aug 13 17:15 config.php
-rw-rw-r– 1 www-data www 133 Aug 6 12:22 .htaccess
-rw-rw—- 1 www-data www 51 Aug 6 12:22 ips.php
-rw-rw-r– 1 root root 25545 Aug 13 12:30 rules.php
-rw-rw—- 1 root root 16204 Aug 13 12:30 wafRules.rules