Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On a CentOS 6 web server with Wordpress installed in /var/www/html/wordpress, and using PageSpeed for caching, I cannot access the /pagespeed_console through the web browser.

I only get a 503 error.

Searching through the httpd /var/log/httpd/error_log shows, "LimitInternalRecursion".

/var/log/httpd/access_log:

"GET /pagespeed_console HTTP/1.1" 500 395 "-" 
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1)
 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36"

/var/log/httpd/error_log:

Request exceeded the limit of 10 internal redirects due to probable 
configuration error. Use 'LimitInternalRecursion' to increase the limit 
if necessary. Use 'LogLevel debug' to get a backtrace.
share|improve this question
    
You didn't provide nearly enough information for us to help you. Some obvious things that are missing from the question are: the error message (it's not nearly long enough to justify linking to pastebin); your Apache virtual host configuration and .htaccess file; perhaps a description of exactly what you installed and how. –  Michael Hampton Feb 18 at 13:11
    
You should follow the instructions in the error log (Use 'LogLevel debug' to get a backtrace.) and debug your broken redirect - Or if you want us to help you do that at least show us the broken redirect from your configuration file... –  voretaq7 Feb 19 at 17:23
    
Here is the debug output for the rewrite log: pastebin.com/GtRDieSM and the www.conf: pastebin.com/75P5FF27. –  Twitch Feb 19 at 20:26

2 Answers 2

your rewrite rule is colliding and generating an internal redirect massacre.

just add another condition to it so that /pagespeed_console is not rewritten.

 <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteRule ^index\.php$ - [L]
        RewriteRule ^server-status$ - [L]
        # do not parse mod_pagespeed URIs
        RewriteCond %{REQUEST_URI} !^/mod_pagespeed_[a-z_]+$
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . /index.php [L]
    </IfModule>
share|improve this answer
up vote 0 down vote accepted

The problem was with SELinux for CentOS.

Type the following on the CLI: chcon -R -t httpd_sys_content_t /var/cache/mod_pagespeed

Instructions are listed in the section "Why do I get Permission denied errors in my log file on CentOS, RHEL, or any system using SELinux?" at https://developers.google.com/speed/pagespeed/module/faq

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.