Sunday, May 3, 2009

404 Not Found

I have been reading through the posts here and there were some older
posts that didn't seem to help me.

I am getting a 404 Not Found error when going to the myserver.local/
posts/index in the blog tutorial.

I have a mac running leopard, but that shouldn't matter seeing as how
i have all the needed things (apache, mysql, etc.) installed and are
running fine.

when i go to myserver.local (which is a virtual host pointing to the
cake/app/webroot dir i have the default cake page there with
stylesheets and all.

but after going so far in the tutorial as to get to section 10.1.8
Creating Post Views and it says

"At this point, you should be able to point your browser to
http://www.example.com/posts/index. You should see your view,
correctly formatted with the title and table listing of the posts."

That is where i get the error.

I assumed that it was my apache config going all screwy. And, I
suppose it still very well could.

The kicker is that the tab with my cake_blog/tutorial still has the
cakephp favicon there not the apache feather.

here are a few sections of my httpd.conf file to show that it should
be working

LoadModule alias_module libexec/apache2/mod_alias.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
LoadModule bonjour_module libexec/apache2/mod_bonjour.so
LoadModule php5_module libexec/apache2/libphp5.so

<Directory />
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

I am aware of the security risk of this last part but i was trying to
see if this would fix it.


I am using virtual hosts and am not sure if that has anything to do
with the setting of AllowOverride and am having troubles locating that
anywhere on the "interwebs".

P.S. I do restart apache after each change to the httpd.conf file and
then check to see if it is working.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: