I am running PHP5 on Gentoo(Linux) with Apache 2.x.  I have
mod_rewrite installed.

I recently started working with CakePHP and could not get the
mod_rewrite to work.  I kept getting a 404 error when I would do the
example of the blog.  (http://localhost/posts/view/1).

After MUCH searching I finally solved my own problem and am writing
here so that it may help everyone else.

Make sure that <Directory /> AllowOvveride is set to All.

I did this and still no go.  After an hour of mulling, I realized that
I was running apache in virtualhost mode.

So, change your /etc/apache2/vhosts.d/00_default_vhosts.conf
<Directory /> AllowOvveride to All and I was golden.

If you don't have this specific directory structure, do a <?
phpinfo(); ?> and look at the 5th line down for
"Virtual Directory Support".  If it is enabled, you are running
virtual so you need to do the second AllowOverride.
This is the only other way I know how to tell you to check for this.

I know I am not well spoken but, I do hope this helps someone having
the same problem as me.
I had seen a LOT of people having problems with mod_rewrite and cake.

Sorry for my sloppy writing!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to