[wp-trac] [WordPress Trac] #12255: apache_get_modules() not returning mod_rewrite status

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 16 21:29:28 UTC 2010


#12255: apache_get_modules() not returning mod_rewrite status
--------------------------+-------------------------------------------------
 Reporter:  JohnONolan    |       Owner:  ryan
     Type:  defect (bug)  |      Status:  new 
 Priority:  normal        |   Milestone:  3.0 
Component:  Permalinks    |     Version:  3.0 
 Severity:  normal        |    Keywords:      
--------------------------+-------------------------------------------------
Changes (by erisds):

 * cc: erisds (added)
  * owner:  => ryan
  * component:  Multisite => Permalinks


Comment:

 apache_mod_loaded does two tests to see if a module is loaded:

 1. if the method apache_get_modules is available it checks the list of
 returned modules
 2. if the method apache_get_modules is not available it checks the output
 of phpinfo().

 However, on many shared hosting setups neither apache_get_modules is
 available nor are the details of available modules provided via the output
 of phpinfo().

 This means that both tests fail, but the requested module may still be
 available.

 A more reliable test is required to check if mod_rewrite is available
 during the "Network" activation, such as writing a test rewrite rule to
 the .htaccess and checking the returned URL.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12255#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list