Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Problems with mod_rewrite on apache2 + php-fpm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
oliwel
n00b
n00b


Joined: 09 Oct 2004
Posts: 70

PostPosted: Thu Jul 12, 2012 7:05 pm    Post subject: [SOLVED] Problems with mod_rewrite on apache2 + php-fpm Reply with quote

Hi Folks,

I want to migrate a LAMP with mod_php to apache / fastcgi / fpm - I tried out the howto at http://mattmcadoo.com/content/mini-howto-setting-php-fpm-apache-gentoo which works but I cant get my rewrite stuff to work =(

I have a ZendFramework MVC App that does url rewriting using

Code:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php [L] 


After migration to the fpm server, I just see a plain message "File not found".
As I get a 500 Server Error when I pull down the FPM Server, it seems like the rewrite works correctly and passes the url to the fpm processor. I also tried

Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]


which has the same result. In the rewrite log I see the rewrite happen with a last line of
Code:
internal redirect with /index.php/login/ [INTERNAL REDIRECT]
where login is the originating url path.

Anybody can help me out?

Oliver


Last edited by oliwel on Sat Jul 14, 2012 1:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
oliwel
n00b
n00b


Joined: 09 Oct 2004
Posts: 70

PostPosted: Sat Jul 14, 2012 1:24 pm    Post subject: Reply with quote

Problem is solved - it was not the rewrite but a missing "short_tag" option in the new fpm php.ini file. So the files where correctly passed to fpm but due to the short tags used they were not parsed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum