Error: The requested address ” was not found on this server
Written by: Maciej Grajcarek
May 3, 2008
Last night, during installation of the CakePHP application on clients production server, a weird problem appeared. All requests to controllers actions returned : “Error: The requested address ” was not found on this server”. At the same time, access to webroot was incessant.
If you have the same problem, try this three steps:
- make sure you have an access to the database, and there are all necessary tables,
- check if you tmp folder is writable,
- delete all cache files from the temp subfolders.
That should fix the problem.
Posted in



October 31st, 2008 at 8:23 am
so i have same problem. i have solve the problem because wrong config database
thank you.
January 29th, 2009 at 10:17 pm
OMG Thanks!!!!! I’ve spending so much time on it.
April 22nd, 2009 at 1:49 am
Thanks, Deleting the cache did the trick!
April 22nd, 2009 at 6:30 pm
thanks! i had to clear the cache folder.
April 27th, 2009 at 6:22 am
Thanks!!
it is solved the problems…..
May 1st, 2009 at 9:14 pm
I never would have thought of clearing the cache files, but that fixed it for me. Thanks so much!
May 12th, 2009 at 1:19 pm
thanks!
clearing the cache folder fixed the problem
June 9th, 2009 at 10:51 am
Thank you so SO much! you’ve saved my internal clock!! i can go to sleep now!
June 9th, 2009 at 11:17 am
hi, we have had to swich our svn server, now it’s under svn.devayd.com - sorry!
but it’s still available for anonymous access (with u: anon, pass: anon)
June 19th, 2009 at 1:16 am
none of the three worked for me. i tried opening the debug level in core.php (set it to 2), and cakephp told me that a helper related to the page i was trying to view was missing. so i copied the missing helper file to app/views/helpers/ and problem solved.
June 20th, 2009 at 7:56 pm
thanks ahmet
June 25th, 2009 at 3:31 am
Missing database table for me…
August 12th, 2009 at 2:09 am
[...] Die üblichen Verdächtigen in so einem Fall sind wie hier beschrieben: [...]
August 28th, 2009 at 4:55 pm
Thanks alot ! God Bless You. I was tired with this error and after reading the blog eric comment, i have get rid of this error.
October 7th, 2009 at 7:25 pm
Missing database table for me…
Doh! I hadn’t imported my database data!
November 10th, 2009 at 4:59 pm
Deleting subfolders in tmp cache did the magic.
THANK YOU FOR SAVING ME
January 5th, 2010 at 11:25 am
You are great ….i hours spent figuring out what went wrong, i would be able to tackle that without this article …thanks
—————
Webmaster blog | library content management software
January 26th, 2010 at 6:35 pm
Thanks dude!
1.5 years and it’s still getting comments.
setting debug to 2 solved it for me.
You should update the post with this rule as the 1st, people tend to forget
February 10th, 2010 at 4:42 am
oh man! forgot to import my table.
February 12th, 2010 at 2:53 pm
Hello,
I had removed the cache, then still not resolved the same problem.
I created a same controller with different name i needed, so i copy the other controller and rename it with the new one. then same above error comes.
Resolved:
i created a new file and then save with new name controller which i want then copy the code from other clone controller then its works.
I hope its OS file node issue..
But i came late on this forum, just resolved my issue.
I shared here, so may point to this kind of issue for other new bie.. to resolve.
Thanks any way.
February 12th, 2010 at 8:55 pm
Wow, second time I’m searching for this error, and I end up here!
You should consider updating this page dude!
Anyway, in your controller function, set $this->autoRender = false; and see if that works. It worked for me. And don’t forget to enable the debugger. Sometimes toggling that value solves a lot of problems.
March 1st, 2010 at 9:20 pm
I can`t repair this error. http://www.tootonga.net
March 9th, 2010 at 12:16 am
thanks, helps alot!
**
** don’t forget: set debug to 2 is very useful
April 7th, 2010 at 3:19 pm
WOOOW!!!! THANKS ADVANCE!!!! i spend several days to fix this error
April 9th, 2010 at 5:16 am
Was missing a DB table and then had to clear the cache. Worked a treat. Thanks for the resource. Saved me a LOT of frustration.
April 14th, 2010 at 1:32 pm
thank you friend…
just now my problem is solved with your tips after scratching my head for days
April 26th, 2010 at 2:29 am
Thank’s! But my problem was, that the .htaccess in the main folder wasn’t copied with others files when I installed.
June 22nd, 2010 at 10:25 am
gozzzzzilion thanks! you helped me ALOT!!!
(cry in happines)
July 28th, 2010 at 5:54 am
.htaccess files were missing for me. Thanks for pointing that out Nico!
July 28th, 2010 at 10:14 am
At the expense of re-iterating the same thing again. It’s the database stupid (this is a note to self). This article got me to look at my database config and I realized I had changed php.ini. BTW. I was also using modelbaker. and MAMP. Here are the things to check (and set them up to be the same. In my case the entries are: /Applications/MAMP/Library/bin/mysql and /Applications/MAMP/Library/bin/mysql).
1. Modelbaker - settings - Build - MYSQL command and socket
2. /Applications/MAMP/htdocs/conf/php5.2/php.ini (socket line)
3. /Applications/MAMP/htdocs/conf/php5.3/php.ini (socket line)
Hope this helps someone else as well.
August 24th, 2010 at 9:00 pm
Hey guys,
I spent a few minutes trying to figure this out, as I was getting the same error. Turned out my database connection parameters were wrong, but I was getting no error messages to tip me off that this was the issue. The reason? I had the Cake debug level set to 0.
Here’s the lesson: if you can’t figure out what’s wrong, turn error reporting on!q
August 26th, 2010 at 2:59 am
ERROR:
The helper file app/views/helpers/box.php can not be found or does not exist
SOLUTION:
the filename of the helper was missing should be written in lower case.
then it worked.
BUT: now I have another problem can’t resolve yet:
Cannot modify header information - headers already sent by (output started at /home/www/app/app_model.php:1) [CORE/cake/libs/controller/controller.php, line 647]