• Resolved niclasreich

    (@imflushy)


    Hello Community, I’m in need of your help.

    I found out, that the Wordfence Firewall Protection is blocking access to phpmyadmin, which is of course not wanted. I found this in my apache2 error.log:

    [Sun Oct 09 05:59:39.796433 2016] [:error] [pid 594] [client 217.82.XXX.X:3396] PHP Warning:  Unknown: open_basedir restriction in effect. File(/var/www/naspyy.de/wordfence-waf.php) is not within the allowed path(s): (/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/) in Unknown on line 0
    [Sun Oct 09 05:59:39.796476 2016] [:error] [pid 594] [client 217.82.XXX.X:3396] PHP Warning:  Unknown: failed to open stream: Operation not permitted in Unknown on line 0
    [Sun Oct 09 05:59:39.796497 2016] [:error] [pid 594] [client 217.82.XXX.X:3396] PHP Fatal error:  Unknown: Failed opening required '/var/www/naspyy.de/wordfence-waf.php' (include_path='.') in Unknown on line 0

    I have several WordPress-Installations on my VPS and all are secured with Wordfence.
    Please help me asap, thanks!

Viewing 1 replies (of 1 total)
  • Hi imflushy,

    What is happening here is that the Wordfence Firewall is trying to load in your phpMyAdmin directory but since there is a setting for that directory called “open_basedir” it wont allow the Firewall to be loaded.

    To get rid of the error you would either have to change that setting so that the Firewall is allowed to be loaded in that directory, or you have to set the Firewall to not load at all in that directory. You can do that by setting auto_prepend_file with an empty value for that directory.

    You would go about this by inspecting how your Firewall is loaded. Check .htaccess and (if it exists) .user.ini in the root of your WordPress installation. The settings you see there you could replicate in the phpMyAdmin folder except you would set auto_prepend_file to a blank value.

Viewing 1 replies (of 1 total)
  • The topic ‘Wordfence blocks phpmyadmin’ is closed to new replies.