[wp-hackers] Help needed with two issues on established WP install

Vogel, Andrew (vogelap) VOGELAP at UCMAIL.UC.EDU
Fri Aug 25 12:55:30 GMT 2006


Thanks for your attention and energy on this problem.

So, it seems that permalinks are actually working (even though they
don't) -- so that's not the problem.

I wonder if it might be something in my httpd.conf... Here's the lines I
think may be relevant... Can you take a look at them to verify that I've
got things correctly configured? Thanks!

DocumentRoot "/var/www/html"
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

# Note that from this point forward you must specifically ALLOW
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
<Directory "/var/www/html/cgi-bin">
        Options ExecCGI Includes
        AddHandler cgi-script .cgi .pl
        AllowOverride None
</Directory>

<Directory "/var/www/html/gallery2">
        AllowOverride Options FileInfo
</Directory>

# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
Multiviews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks Includes ExecCGI

# AllowOverride controls what directives may be placed in .htaccess
files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride All
    AcceptPathInfo On

# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all
</Directory>

#
# Disable autoindex for the root directory, and present a
# default Welcome page if no other index page is present.
#
<LocationMatch "^/$>
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

-andrew vogel
Manager of Professional Programs
University of Cincinnati
College of Pharmacy 
 

> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com 
> [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of 
> Jamie Holly
> Sent: Thursday, August 24, 2006 3:43 PM
> To: wp-hackers at lists.automattic.com
> Subject: RE: [wp-hackers] Help needed with two issues on 
> established WP install
> 
> Everything looks good in the logs. They are both passing to 
> /index.php and nothing is stopping in the way.
> 
> ************************
> BROKEN
> ************************
> (2) init rewrite engine with requested uri /2006/05/01/quicklinks/
> (3) applying pattern '.*' to uri '/2006/05/01/quicklinks/'
> (4) RewriteCond: input='GET' pattern='^TRACE' => not-matched
> (1) pass through /2006/05/01/quicklinks/
> (3) [perdir /var/www/html/] add path info postfix: 
> /var/www/html/2006 -> /var/www/html/2006/05/01/quicklinks/
> (3) [perdir /var/www/html/] strip per-dir prefix:
> /var/www/html/2006/05/01/quicklinks/ -> 2006/05/01/quicklinks/
> (3) [perdir /var/www/html/] applying pattern '.' to uri 
> '2006/05/01/quicklinks/'
> (4) [perdir /var/www/html/] RewriteCond: input='/var/www/html/2006'
> pattern='-f' => not-matched
> (4) [perdir /var/www/html/] RewriteCond: input='/var/www/html/2006'
> pattern='-d' => not-matched
> (4) [perdir /var/www/html/] RewriteCond: input='/var/www/html/2006'
> pattern='gallery\_remote2\.php' => not-matched
> (3) [perdir /var/www/html/] add path info postfix: 
> /var/www/html/2006 -> /var/www/html/2006/05/01/quicklinks/
> (3) [perdir /var/www/html/] strip per-dir prefix:
> /var/www/html/2006/05/01/quicklinks/ -> 2006/05/01/quicklinks/
> (3) [perdir /var/www/html/] applying pattern '.' to uri 
> '2006/05/01/quicklinks/'
> (4) [perdir /var/www/html/] RewriteCond: input='GET 
> /2006/05/01/quicklinks/ HTTP/1.1' pattern='\ 
/d/([0-9]+)-([0-9]+)/([^\/\?]+)(\?.|\ .)' => not-matched
> (3) [perdir /var/www/html/] add path info postfix: 
> /var/www/html/2006 -> /var/www/html/2006/05/01/quicklinks/
> (3) [perdir /var/www/html/] strip per-dir prefix:
> /var/www/html/2006/05/01/quicklinks/ -> 2006/05/01/quicklinks/
> (3) [perdir /var/www/html/] applying pattern '.' to uri 
> '2006/05/01/quicklinks/'
> (4) [perdir /var/www/html/] RewriteCond: input='GET 
> /2006/05/01/quicklinks/ HTTP/1.1' pattern='\ /f/([^?]+)(\?.|\ 
.)' => not-matched
> (3) [perdir /var/www/html/] add path info postfix: 
> /var/www/html/2006 -> /var/www/html/2006/05/01/quicklinks/
> (3) [perdir /var/www/html/] strip per-dir prefix:
> /var/www/html/2006/05/01/quicklinks/ -> 2006/05/01/quicklinks/
> (3) [perdir /var/www/html/] applying pattern '.' to uri 
> '2006/05/01/quicklinks/'
> (4) [perdir /var/www/html/] RewriteCond: input='GET 
> /2006/05/01/quicklinks/ HTTP/1.1' pattern='\ /v/([^?]+)(\?.|\ 
.)' => not-matched
> (3) [perdir /var/www/html/] add path info postfix: 
> /var/www/html/2006 -> /var/www/html/2006/05/01/quicklinks/
> (3) [perdir /var/www/html/] strip per-dir prefix:
> /var/www/html/2006/05/01/quicklinks/ -> 2006/05/01/quicklinks/
> (3) [perdir /var/www/html/] applying pattern '.' to uri 
> '2006/05/01/quicklinks/'
> (4) [perdir /var/www/html/] RewriteCond: input='/var/www/html/2006'
> pattern='!-f' => matched
> (4) [perdir /var/www/html/] RewriteCond: input='/var/www/html/2006'
> pattern='!-d' => matched
> (2) [perdir /var/www/html/] rewrite '2006/05/01/quicklinks/' 
-> '/index.php'
> (2) [perdir /var/www/html/] trying to replace prefix 
> /var/www/html/ with /
> (1) [perdir /var/www/html/] internal redirect with /index.php 
> [INTERNAL REDIRECT]
> 
> 
> 
> 
> 
> *******************
> working
> ******************
> (2) init rewrite engine with requested uri 
> /2005/06/02/funny-sign-in-new-york/
> (3) applying pattern '.*' to uri '/2005/06/02/funny-sign-in-new-york/'
> (4) RewriteCond: input='GET' pattern='^TRACE' => not-matched
> (1) pass through /2005/06/02/funny-sign-in-new-york/
> (3) [perdir /var/www/html/] add path info postfix: 
> /var/www/html/2005 -> /var/www/html/2005/06/02/funny-sign-in-new-york/
> (3) [perdir /var/www/html/] strip per-dir prefix:
> /var/www/html/2005/06/02/funny-sign-in-new-york/ -> 
> 2005/06/02/funny-sign-in-new-york/
> (3) [perdir /var/www/html/] applying pattern '.' to uri 
> '2005/06/02/funny-sign-in-new-york/'
> (4) [perdir /var/www/html/] RewriteCond: input='/var/www/html/2005'
> pattern='-f' => not-matched
> (4) [perdir /var/www/html/] RewriteCond: input='/var/www/html/2005'
> pattern='-d' => not-matched
> (4) [perdir /var/www/html/] RewriteCond: input='/var/www/html/2005'
> pattern='gallery\_remote2\.php' => not-matched
> (3) [perdir /var/www/html/] add path info postfix: 
> /var/www/html/2005 -> /var/www/html/2005/06/02/funny-sign-in-new-york/
> (3) [perdir /var/www/html/] strip per-dir prefix:
> /var/www/html/2005/06/02/funny-sign-in-new-york/ -> 
> 2005/06/02/funny-sign-in-new-york/
> (3) [perdir /var/www/html/] applying pattern '.' to uri 
> '2005/06/02/funny-sign-in-new-york/'
> (4) [perdir /var/www/html/] RewriteCond: input='GET 
> /index.php/2005/06/02/funny-sign-in-new-york/ HTTP/1.1' 
> pattern='\ /d/([0-9]+)-([0-9]+)/([^\/\?]+)(\?.|\ .)' => not-matched
> (3) [perdir /var/www/html/] add path info postfix: 
> /var/www/html/2005 -> /var/www/html/2005/06/02/funny-sign-in-new-york/
> (3) [perdir /var/www/html/] strip per-dir prefix:
> /var/www/html/2005/06/02/funny-sign-in-new-york/ -> 
> 2005/06/02/funny-sign-in-new-york/
> (3) [perdir /var/www/html/] applying pattern '.' to uri 
> '2005/06/02/funny-sign-in-new-york/'
> (4) [perdir /var/www/html/] RewriteCond: input='GET 
> /index.php/2005/06/02/funny-sign-in-new-york/ HTTP/1.1' 
> pattern='\ /f/([^?]+)(\?.|\ .)' => not-matched
> (3) [perdir /var/www/html/] add path info postfix: 
> /var/www/html/2005 -> /var/www/html/2005/06/02/funny-sign-in-new-york/
> (3) [perdir /var/www/html/] strip per-dir prefix:
> /var/www/html/2005/06/02/funny-sign-in-new-york/ -> 
> 2005/06/02/funny-sign-in-new-york/
> (3) [perdir /var/www/html/] applying pattern '.' to uri 
> '2005/06/02/funny-sign-in-new-york/'
> (4) [perdir /var/www/html/] RewriteCond: input='GET 
> /index.php/2005/06/02/funny-sign-in-new-york/ HTTP/1.1' 
> pattern='\ /v/([^?]+)(\?.|\ .)' => not-matched
> (3) [perdir /var/www/html/] add path info postfix: 
> /var/www/html/2005 -> /var/www/html/2005/06/02/funny-sign-in-new-york/
> (3) [perdir /var/www/html/] strip per-dir prefix:
> /var/www/html/2005/06/02/funny-sign-in-new-york/ -> 
> 2005/06/02/funny-sign-in-new-york/
> (3) [perdir /var/www/html/] applying pattern '.' to uri 
> '2005/06/02/funny-sign-in-new-york/'
> (4) [perdir /var/www/html/] RewriteCond: input='/var/www/html/2005'
> pattern='!-f' => matched
> (4) [perdir /var/www/html/] RewriteCond: input='/var/www/html/2005'
> pattern='!-d' => matched
> (2) [perdir /var/www/html/] rewrite 
> '2005/06/02/funny-sign-in-new-york/' -> '/index.php'
> (2) [perdir /var/www/html/] trying to replace prefix 
> /var/www/html/ with /
> (1) [perdir /var/www/html/] internal redirect with /index.php 
> [INTERNAL REDIRECT]
> 
> 
> Just out of curiosity - do you have some sort of query cache 
> running on your site? Perhaps that is causing the problem.
> 
> Also do you have any directories within your root directory 
> that could be causing a problem (ie. /2006/ or /2005/). Since 
> you sometimes get a standard
> 404 and other times get a wp-404, it is almost acting like it 
> is finding a directory and looking inside of there. 
> 
> I would start by disabling any caching you might have (query, 
> apc, wp-cache,
> etc.) and see if the problem persists. This is about all I 
> can think of at this point. 
> 
> Jamie Holly
> http://www.intoxination.net
> 
> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com
> [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of 
> Vogel, Andrew
> (vogelap)
> Sent: Thursday, August 24, 2006 3:18 PM
> To: wp-hackers at lists.automattic.com
> Subject: RE: [wp-hackers] Help needed with two issues on 
> established WP install
> 
> It should be noted, however, that simply visiting the 
> Options->Permalink page still breaks the site.
> 
> -andrew vogel
> Manager of Professional Programs
> University of Cincinnati
> College of Pharmacy 
>  
> 
> > -----Original Message-----
> > From: wp-hackers-bounces at lists.automattic.com
> > [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf 
> Of Vogel, 
> > Andrew (vogelap)
> > Sent: Thursday, August 24, 2006 2:25 PM
> > To: wp-hackers at lists.automattic.com
> > Subject: RE: [wp-hackers] Help needed with two issues on 
> established 
> > WP install
> > 
> > Thanks for helping out so far, Jamie. I really do appreciate your 
> > assistance!
> > 
> > I apologize for my ignorance, but I'm not sure what I'm 
> looking for in 
> > the rewrite log file, so I've posted the whole thing from both the 
> > working site (56K) and non-working (84K) configurations.
> > 
> > Here's what I did...
> > 
> > * I enabled the rewrite log on my functioning site and visited the 
> > main page and one article. The results of that test are here:
> > http://www.drewvogel.com/apache_rewrite_working.txt
> > 
> > Then, I...
> > * Went to http://www.drewvogel.com/wp-admin/options.php and removed 
> > the "/index.php" from the permalink_structure line and click the 
> > "Update Settings" button.
> > 
> > * "service httpd restart" to restart Apache.
> > 
> > * I visited the main page and one article. The results of that test 
> > are
> > here: http://www.drewvogel.com/apache_rewrite_broken.txt. I 
> received a 
> > non-WP 404 when attempting to view the article.
> > 
> > On (an exciting) side note, I went back to 
> > http://www.drewvogel.com/wp-admin/options.php, re-added the 
> > "/index.php"
> > to the permalink_structure field, clicked "Update 
> Settings", and did 
> > "service httpd restart" and my site worked again -- I 
> didn't need to 
> > roll it back from the database backup! That's progress, I suppose!
> > 
> > Please let me know how to proceed from here.
> > 
> > -andrew vogel
> > Manager of Professional Programs
> > University of Cincinnati
> > College of Pharmacy
> >  
> > 
> > > -----Original Message-----
> > > From: wp-hackers-bounces at lists.automattic.com
> > > [mailto:wp-hackers-bounces at lists.automattic.com] On 
> Behalf Of Jamie 
> > > Holly
> > > Sent: Wednesday, August 23, 2006 4:35 PM
> > > To: wp-hackers at lists.automattic.com
> > > Subject: RE: [wp-hackers] Help needed with two issues on
> > established
> > > WP install
> > > 
> > > At this point, I would suggest enabling the mod_rewrite 
> log to make 
> > > certain that mod_rewrite is fully firing. For some reason
> > it needs the
> > > index.php instead of mod_rewrite automatically appending the 
> > > index.php.
> > > 
> > > Jamie Holly
> > > http://www.intoxination.net
> > > 
> > > 
> > > _______________________________________________
> > > wp-hackers mailing list
> > > wp-hackers at lists.automattic.com
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > 
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > 
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 


More information about the wp-hackers mailing list