Tuesday, July 24, 2012

Error: The requested address was not found on this server.

Dear all,

Some weeks ago I inherited a CakePHP application that I'm supposed to deploy to a server. I went through the CakePHP tutorial and put my hands to work. The problem is that I can't pass from the front page (app/Pages/home.ctp), any links from there get to a page with the error in subject. Trying direct access to routes like /view/action have the same result.

I made a simple test that yielded a strange result: there's a model called User with its respective controller and view. I copied the view folder to another CakePHP app, and when I access to:

http://localhost/myApp/User

I get an error saying the User model doesn't exist, which is correct since I only copied the view folder. But when I try a similar thing in the legacy application:

http://localhost/legacyApp/User

I get the address not found error.

Reading the messages in this list I tried the following:
. changed the debug level to 1 - no further messages are shown
. deleted the contents of /app/tmp/cache/models/ and /app/tmp/cache/persistent/
. verified .htaccess files are present
. verified www-data has permissions to write on .htaccess files

But none of these actions had effect. If anyone as a clue on what else may be causing this I'd appreciate to know.

Thank you and regards.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
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

No comments: