I used .htaccess and I verified that 'AllowOverride All' has been set in
httpd.conf. The mod_rewrite is loaded as confirmed with phpinfo. here is
my .htaccess for the root folder:
**********************************
RewriteEngine on
RewriteRule .* index.php
php_flag magic_quotes_gpc off
php_flag register_globals off
**********************************
Othe folders has "deny from all" set in .htaccess.
I agree this is probably a mod_rewrite setup problem, but I don't know
where is wrong. Thanks.
Bryan Dunlap wrote:
-------- Original Message --------
Subject: Re: [fw-general] Broken after upgrade to Apache 2.2
From: Chuck Bai <[EMAIL PROTECTED]>
Date: Thu, March 13, 2008 10:01 am
To: Isaak Malik <[EMAIL PROTECTED]>, [email protected]
When I am trying to access login page:
http://localhost/my-app/auth/login (where AuthController/loginAction)
I got this Apache error log:
[time] [error] [client 127.0.0.1] File does not exist:
C:/doc-root/my-app/auth, referer: http://localhost/my-app/
I have another PHP application not using ZF. It is working fine. So the
web server is not a problem. Seems the problem is due to ZF MVC, which
is not functional after the upgrade. It could not find the controller
and do the action I requested. It is working fine with Apache 2.0 and I
did not have any code change after the upgrade.
What you're describing screams mod_rewrite problem to me.
How are you utilizing mod_rewrite for your ZF application? Using
.htaccess file(s) or directly within an apache virtual host definition?
If using .htaccess, did you verify that AllowOverride was configured
properly after your upgrade?
You say you verified that mod_rewrite was loaded. Did you verify that it
was working properly? Try enabling rewrite logging and make sure that
you're even engaging the rewrite engine when you make your requests.
I develop against ZF every day, using some combination of both PHP 5.2.x
and Apache 2.0.x/2.2.x. I'm certain your problem is related to some
change in your web server environment (specifically mod_rewrite related)
and not a problem with the ZF itself.
Thanks,
-B