# Debian Wheezy + PHP-FPM + Shopware 4.3.1 - Redirect Loop

**URL:** <https://forum.shopware.com/t/debian-wheezy-php-fpm-shopware-4-3-1-redirect-loop/22327>\
**Category:** Shopware 3.5\
**Tags:** installation--gettin\
**Created:** [9. September 2014 um 12:04 UTC](https://forum.shopware.com/t/debian-wheezy-php-fpm-shopware-4-3-1-redirect-loop/22327 "2014-09-09T12:04:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkl1525](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@mkl1525](https://forum.shopware.com/u/mkl1525)\
**Post date:** [9. September 2014 um 12:04 UTC](https://forum.shopware.com/t/debian-wheezy-php-fpm-shopware-4-3-1-redirect-loop/22327/1 "2014-09-09T12:04:15Z")

</div>

Hallo, ich versuche gerade Shopware 4.3.1 auf einem frischen Debian Wheezy mit Apache2, PHP 5.5 und FPM zu installieren. Die FPM-Installation erfolgte nach [dieser Anleitung](http://www.sysadminslife.com/linux/howto-apache-mit-php-fpm-und-mod-fastcgi-unter-debian-wheezy/). Wenn ich den bestehenden Shopware-Code aktiviere bekomme ich vom Apache eine „500 Internal Server Error“-Meldung. Die Logs melden „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.“ Aktiviere ich das Debug-LogLevel sehe ich `[Tue Sep 09 11:50:22 2014] [debug] core.c(3112): [client 192.168.2.115] r-\>uri = /shopware.php [Tue Sep 09 11:50:22 2014] [debug] core.c(3118): [client 192.168.2.115] redirected from r-\>uri = /php5.fcgi/shopware.php [Tue Sep 09 11:50:22 2014] [debug] core.c(3118): [client 192.168.2.115] redirected from r-\>uri = /shopware.php [Tue Sep 09 11:50:22 2014] [debug] core.c(3118): [client 192.168.2.115] redirected from r-\>uri = /php5.fcgi/shopware.php [Tue Sep 09 11:50:22 2014] [debug] core.c(3118): [client 192.168.2.115] redirected from r-\>uri = /shopware.php [Tue Sep 09 11:50:22 2014] [debug] core.c(3118): [client 192.168.2.115] redirected from r-\>uri = /php5.fcgi/shopware.php [Tue Sep 09 11:50:22 2014] [debug] core.c(3118): [client 192.168.2.115] redirected from r-\>uri = /shopware.php [Tue Sep 09 11:50:22 2014] [debug] core.c(3118): [client 192.168.2.115] redirected from r-\>uri = /php5.fcgi/shopware.php [Tue Sep 09 11:50:22 2014] [debug] core.c(3118): [client 192.168.2.115] redirected from r-\>uri = /shopware.php [Tue Sep 09 11:50:22 2014] [debug] core.c(3118): [client 192.168.2.115] redirected from r-\>uri = /php5.fcgi/shopware.php [Tue Sep 09 11:50:22 2014] [debug] core.c(3118): [client 192.168.2.115] redirected from r-\>uri = /shopware.php ` Offensichtlich beissen sich die Rewrite-Regeln von Shopware mit dem Rewrite für PHP. Aus der Apache-Konfiugration: ` AddHandler php5-fcgi .php Action php5-fcgi /php5.fcgi Alias /php5-fcgi /var/www/php5-fcgi FastCgiExternalServer /var/www/php5.fcgi -socket /var/run/php5-fpm.sock ` Da ich mich mit mod\_rewrite nicht wirklich auskenne: hat jemand von euch einen Tip, wie ich verhindern kann, das Shopware sich um „/php5.fcgi“-URLs kümmert? Gruß Mario

---

<div class="post-metadata">

**Author:** ![TimmeHosting](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timmehosting/32/15580_2.png) [@TimmeHosting](https://forum.shopware.com/u/TimmeHosting)\
**Post date:** [17. September 2014 um 00:31 UTC](https://forum.shopware.com/t/debian-wheezy-php-fpm-shopware-4-3-1-redirect-loop/22327/2 "2014-09-17T00:31:31Z")

</div>

Du kannst versuchen, die .htaccess-Datei von Shopware wie folgt zu ergänzen: RewriteCond %{REQUEST\_URI} !(/(engine|files|templates)/) RewriteCond %{REQUEST\_URI} !(/media/(archive|banner|image|music|pdf|unknown|video)/) RewriteCond %{REQUEST\_URI} !(/php5.fcgi/) RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_FILENAME} !-d RewriteRule ^(.\*)$ shopware.php [PT,L,QSA]
