Skip to content

Instantly share code, notes, and snippets.

@Billy-
Last active August 29, 2015 14:11
Show Gist options
  • Save Billy-/7e65c3b3e0027259ab63 to your computer and use it in GitHub Desktop.
Save Billy-/7e65c3b3e0027259ab63 to your computer and use it in GitHub Desktop.
Mod_rewrite check
$a = ( in_array('mod_rewrite', apache_get_modules()) || strpos(shell_exec('/usr/local/apache/bin/apachectl -l'), 'mod_rewrite') !== false );
echo 'Mod rewrite is ' . ($a ? 'enabled' : 'disabled');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment