[wp-trac] [WordPress Trac] #12029: SCRIPT_NAME with CGI script in subdirectory causes failed install

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 26 00:19:37 UTC 2010


#12029: SCRIPT_NAME with CGI script in subdirectory causes failed install
--------------------------+-------------------------------------------------
 Reporter:  wpmuguru      |       Owner:                
     Type:  defect (bug)  |      Status:  new           
 Priority:  normal        |   Milestone:  Unassigned    
Component:  Multisite     |     Version:                
 Severity:  normal        |    Keywords:  needs-feedback
--------------------------+-------------------------------------------------
 MU Trac Ticket: http://trac.mu.wordpress.org/ticket/502

 Background: I have had some difficulty trying to install WordPress? MU for
 a client (a major university). In this case, PHP is available as CGI,
 rather than as an Apache Module. The _SERVER["SCRIPT_FILENAME"] variable
 is reported as /cgi-php5/php. I managed to resolve the issues through use
 of a workaround - which I detail below. In this case

 Affected functions: Initial installation and usage.

 Steps to replicate:

     * Install Apache.
     * Install PHP as CGI, within a subdirectory of the cgi-bin.
     * Attempt to install WordPress? MU.

 Analysis:

 The "regular" installation instructions will not install WordPress MU.

 The problematic _SERVER scoped variables are: _SERVER["SCRIPT_FILENAME"]
 which is reported as /usr/local/opt/php/php-5.2.1/bin/php .
 _SERVER["SCRIPT_NAME"] which is reported as /cgi-php5/php .

     * See also  http://wordpress.org/support/topic/33564 for how this
 affects a regular (non multiuser) installation of WordPress.
     * See http://mu.wordpress.org/forums/topic.php?id=5529 for a similar
 issue in a WordPress? MU installation.

 The misconfiguration in the generated configuration files includes:

     * $base in generated wp-config.php incorrectly defined as 'cgi-php5'.
     * RewriteBase? in generated .htaccess incorrectly defined as 'cgi-
 php5'.
     * the following database values are set incorrectly:

         tables for multi-user support:
         table name      column name     column value
         wp_blogs        path    /cgi-php5/
         wp_site         path    /cgi-php5/

         the default blog:
         table name      column name     column value
         wp_1_comments   comment_author_url       http://ucl.ac.uk/cgi-
 php5/
         wp_1_options    siteurl          http://ucl.ac.uk/cgi-php5/
         wp_1_options    home     http://ucl.ac.uk/cgi-php5/
         wp_1_options    fileupload_url   http://ucl.ac.uk/cgi-php5/files

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12029>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list