if php run as fastcgi, mod_rewrite will not be detected, as function apache_get_modules dose not exists.