diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-07-05 13:45:06 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-07-05 13:45:06 +0000 |
commit | 78b9569980333f344366151f2dfc9e5b6412e175 (patch) | |
tree | aadfe3827ff746f7c073ba9f192767e4099f771f /index-install.php | |
parent | c1e9ee019dcce4d8c2e5bc7d6feac95afa812598 (diff) | |
download | wordpress-mu-78b9569980333f344366151f2dfc9e5b6412e175.tar.gz wordpress-mu-78b9569980333f344366151f2dfc9e5b6412e175.tar.xz wordpress-mu-78b9569980333f344366151f2dfc9e5b6412e175.zip |
Use apache_get_modules() to find out if mod_rewrite is loaded
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@637 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'index-install.php')
-rw-r--r-- | index-install.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/index-install.php b/index-install.php index 3677654..bada781 100644 --- a/index-install.php +++ b/index-install.php @@ -201,9 +201,17 @@ function checkdirs() { } function step1() { - print "<h2>Installing WPµ</h2>"; - print "<p>Please make sure <code>mod_rewrite</code> is installed as it will be activated at the end of this install.</p> - <p>If the <code>mod_rewrite</code> module is disabled ask your administrator to enable that module, or look at the <a href='http://httpd.apache.org/docs/mod/mod_rewrite.html'>Apache documentation</a> or <a href='http://www.google.com/search?q=apache+mod_rewrite'>elsewhere</a> for help setting it up.</p>"; + print "<h2>Installing WPµ</h2>"; + $mod_rewrite_msg = "<p>If the <code>mod_rewrite</code> module is disabled ask your administrator to enable that module, or look at the <a href='http://httpd.apache.org/docs/mod/mod_rewrite.html'>Apache documentation</a> or <a href='http://www.google.com/search?q=apache+mod_rewrite'>elsewhere</a> for help setting it up.</p>"; + if( function_exists( "apache_get_modules" ) ) { + $modules = apache_get_modules(); + if( in_array( "mod_rewrite", $modules ) == false ) { + echo "<p><strong>Warning!</strong> It looks like mod_rewrite is not installed.</p>" . $mod_rewrite_msg; + } + } else { + ?><p>Please make sure <code>mod_rewrite</code> is installed as it will be activated at the end of this install.</p><?php + echo $mod_rewrite_msg; + } if( checkdirs() == false ) { return false; } |