Note that there are some explanatory texts on larger screens.

plurals
  1. POcakePHP - 404- page not found error, when deploying on a different machine
    text
    copied!<p>I'm trying to deploy a cakephp application into my peers system and i get 404 error, for all requests. <strong>This is not cakephp 404 error, but a normal webserver 404 page not found error.</strong> :( . We both use MAC OS 10.6. The same code works on my machine and on the production system. I have followed the steps to deploy on his machine. I'm using cakephp advanced installation, i.e, webroot contain only index.php, css, js,etc. The APP folder and CAKE folder is located elsewhere.</p> <ol> <li>uncommented the line "LoadModule php5_module...." in /etc/apache2/httpd.conf</li> <li>Changed to AllowOverride All to the Directory - "Library/WebServer/Documents" in /etc/apache2/httpd.conf</li> <li>uncommented and set date.timezone in /etc/php.ini</li> <li>Copied the webroot contents to "Library/WebServer/Documents" and modified index.php to adapt to his machine (setup 3 relevant paths to the CORE, APP and CAKE folder)</li> <li>made sure the DB connection is good.</li> <li>For debugging purpose, Modified core.php and set Configure::write('debug',3);</li> </ol> <p>The homepage get data from an AJAX call. WHen i goto <a href="http://localhost" rel="nofollow">http://localhost</a>, the header and footer contents from the layouts/default.ctp are rendered, but the ajax call which is for example <a href="http://localhost/posts/showmyposts" rel="nofollow">http://localhost/posts/showmyposts</a> gets a 404 (Not Found) error. If I goto to other URLs like <a href="http://localhost/users/login" rel="nofollow">http://localhost/users/login</a>, I get the normal webserver 404 error.</p> <p><strong>Not Found</strong></p> <p>The requested URL /users/login/ was not found on this server.</p> <p>In my apache error log, i get the error as</p> <p>[Mon May 16 16:19:48 2011] [error] [client ::1] File does not exist: /Library/WebServer/Documents/users, referer: <a href="http://localhost/" rel="nofollow">http://localhost/</a> Is my cakephp installation correct ?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload