Yep, I had what appears to be the classic problem getting through the blog tutorial on my mac running OSX 10.5.8. 404 Not Found errors rather than proper mapping of the nice url's. Yes, the .htaccess files were in place. Yes AllowOverride was allowed. Yes the mod_rewrite module was installed. IN FACT, I could get rewriting to operate in some test cases.
Gave up and enabled the pretty-url feature (or whatever it's called) but it's really not so pretty. Created a VirtualHost for the directory. hmmm... not 100% Tried everything in all sorts of combinations. The baffling thing was the home page sometimes could see it's stylesheet, sometimes not. Sometimes I could actually hit the posts page with cakeblog/index.php/ posts, sometimes not and sometimes with the stylesheet, sometimes not. The paths showed as correct in the home page and correct when I used the console!!! I was not working in my main localhost directory which is in /Library/ WebServer (accessed as http://localhost/), I was in my user local which is in User/username/Sites/ (http://localhost/~username/). In this user directory case, it turns out there is a second .conf file used by apache. My main httpd.conf was in /private/etc/apache2/ httpd.conf. The second user specific one is in /private/etc/apache2/ users/username.conf. Setting AllowOverride for my user directories in the main file had no effect for several. First, the user specific .conf file was set to None for AllowOverride. Once I found and set the user .conf setting, I got permission denied errors! The apache logs were a real help in figuring the final solution. I had to have an index.html file in my /Users/username/Sites folder before the server would identify me and properly use my .conf file. Then I had to add FollowSymLinks to the Options so that the AllowOverride All could be used. My main httpd.conf file really didn't end up needing changes, the re- write module was being loaded already. Here's the username.conf file I used: <Directory "/Users/dondrake/Sites/"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> I've only done the most rudimentary tests so there may be more to the story. However, useful details for specific setups seems a bit thin so I figured "Add to the pool, even if it's only a drop". Don Drake Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" 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
