I did all the settings to not use mod_rewrite Apache 2.2 and CakePHP.
Apache2 is up and running and Cake seems to be running too. If I go http://127.0.0.1/cake/index.php
, all green tags along (using PostgreSQL 9.1). I followed the tutorial to create the blog project and created the controller file at /var/www/cake/app/Controller/PostsController.php
(also has CakeController
and AppController
and PagesController
files).
In the Model dir I got Post.php and AppModel, as the tutorial said. And in the View folder, I created Posts folder and the files index.ctp and view.ctp.
When I type an url like http://127.0.0.1/cake/index.php?url=/posts/
it goes to index.php of the Cake main folder. It redirects to there! If I change the URL for example to http://127.0.0.1/cake/index.php?url=/posts/view/1
(like the tutorial) same thing. What went wrong in this picture?
My environment is Debian 6.0-6 64bits. Apache2.2 (installed with SO), CakePHP 2.2.3 and PHP 5.2.8 (or higher).