Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Actually, it is not that uncommon. Crazy? Perhaps ??

    I’ve seen the “Mod rewrite may not be installed!” warning on Apache boxes that have mod_rewrite properly installed but also have altered server signatures. There are a couple of methods to alter the server signature. Example: use mod_security(SecServerSignature) or simply edit the Apache source before compiling. I’ve seen similar troubles with that yabb perl thingy and altered server sigs.

    In any case the wp-cache.php script appears to check wp-admin/includes/misc.php: got_mod_rewrite, which in turn looks to wp-includes/functions.php: apache_mod_loaded which seems to not run the php function apache_get_modules if the signature is not Apache.

    (if ( !$is_apache )
                    return false;

    The $is_apache global seems to come from:
    wp-includes/vars.php:

    $is_apache = ((strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false) || (strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false)) ? true : false;

    I’m not a php coder so these are just assumptions. Fixing this in environments that require these altered signatures is a simple matter of changing the $is_apache var to meet your needs. Either add another test or just change the ‘Apache’ string to whatever you set your server signature to.

    If this is already posted somewhere please accept my apologies for the extra text on the web ??
    -t

Viewing 2 replies - 1 through 2 (of 2 total)