Skip to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

php-fpm: .htaccess - Request exceeded the limit of 10 internal redirects....

Featured Replies

Hi,

 

I tried to switch from php-fcgi to php-fpm. The most things worked fine, but several wordpress-installations produce internal server errors. In the apache2-errorlog I got "Request exceeded the limit of 10 internal redirects due to probable configuration error. Use'LimitInternalRecursion' to increase the limit if necessary".

The recursion seems to be caused by the rewrite-rules in the .htaccess:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

 

Did any of you got similar problems and found a solution?

  • 2 weeks later...

i had a very similar problem with a customers joomla installation and my new server using apache2 + suexec + php5-fpm.

it came down to 1 line which was not matching correctly

you need to debug this properly to get results.

 

RewriteCond %{REQUEST_URI} !^/index\.php

 

change to:

 

RewriteCond %{REQUEST_URI} !^/fastcgiphp/*

 

fixed the problem for me.

 

it seems that the action used in the directoy-options (Action php5-fastcgi /fastcgiphp) is affecting mod_rewrite in a weird way.

i didn't fully understand it myself as i'm no expert to rewrite rules.

 

my apache debug.log if it helps:

[Mon Apr 18 22:20:32 2011] [debug] core.c(3063): [client ***.***.***.***] r->uri = /index.php
[Mon Apr 18 22:20:32 2011] [debug] core.c(3069): [client ***.***.***.***] redirected from r->uri = /fastcgiphp/index.php
[Mon Apr 18 22:20:32 2011] [debug] core.c(3069): [client ***.***.***.***] redirected from r->uri = /index.php
[Mon Apr 18 22:20:32 2011] [debug] core.c(3069): [client ***.***.***.***] redirected from r->uri = /fastcgiphp/index.php
[Mon Apr 18 22:20:32 2011] [debug] core.c(3069): [client ***.***.***.***] redirected from r->uri = /index.php
[Mon Apr 18 22:20:32 2011] [debug] core.c(3069): [client ***.***.***.***] redirected from r->uri = /fastcgiphp/index.php
[Mon Apr 18 22:20:32 2011] [debug] core.c(3069): [client ***.***.***.***] redirected from r->uri = /index.php
[Mon Apr 18 22:20:32 2011] [debug] core.c(3069): [client ***.***.***.***] redirected from r->uri = /fastcgiphp/index.php
[Mon Apr 18 22:20:32 2011] [debug] core.c(3069): [client ***.***.***.***] redirected from r->uri = /index.php
[Mon Apr 18 22:20:32 2011] [debug] core.c(3069): [client ***.***.***.***] redirected from r->uri = /fastcgiphp/index.php
[Mon Apr 18 22:20:32 2011] [debug] core.c(3069): [client ***.***.***.***] redirected from r->uri = /index.php

 

same issue with wordpress and the same solution applies:

 

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/fastcgiphp/*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
# END WordPress

 

*edit* added a wildcard solution that works for all subdirectories.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.