• Resolved pkolenbr

    (@pkolenbr)


    I’ve installed this plugin on our WP site on a linux Debian 6.0 server using the default Apache 2.2.16.

    Problem: the plugin doesn’t recognize the server type and refuses to setup correctly. On almost all settings I’m trying to change it returns the error:

    Your webserver is unsupported. You must use Apache, LiteSpeed or NGINX to make use of these rules.

    When I’m looking at the detected settings it shows:

    Server / Website IP Address: 10.50.60.10
    Server Type:
    Operating System: Linux
    Browser Compression Supported: gzip, deflate

    How does detect the plugin the server type? Is there a setting I’m overlooking? Please help!

    https://www.ads-software.com/extend/plugins/better-wp-security/

Viewing 3 replies - 1 through 3 (of 3 total)
  • It uses the $_SERVER[‘SERVER_SOFTWARE’] php variable to determine if apache is installed. Can you echo this correctly in a test file?

    Thread Starter pkolenbr

    (@pkolenbr)

    It returns an empty string. If I try SERVER-SIGNATURE instead it shows just “Server at …” instead of “Apache Server at …”.
    Same when I look in phpinfo(), the SERVER-SOFTWARE field shows empty.
    So I guess some security option prevents this field from showing up, it could be suhosin or mod_security. I’ll see if I can find out.

    Is there any workaround forcing BWPS to recognize the server as Apache?

    Sorry, no work around currently (I would be afraid of what could happen if I allowed folks to override that one). If you really want you could search for SERVER_SOFTWARE in the plugin code and replace the value of apache with ” which might help you however keep in mind that on every upgrade you would have to reapply the changes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Better WP Security] Server type not recognized’ is closed to new replies.