Getting started with Cakephp without mod_rewrite

You want to know more about CakePHP ? Then I can advice you the following :

Step 1 : Start with a working apache web server.

Here can you registrate yourself for a free account!
When you are reading connect to your account usng an ftp client and upload the latest cakephp framework. (Atm it is 1.2 RC1)
FYI : I used release candidate 1 from 1.2 since I noticed that version 1.2 is better documented than stable release 1,1

Step 2 : Follow the CakePHP Blog Tutorial

It is an easy to follow tutorial. I only had troubles with it because of mod_rewrite so I describe what I’ve done to let it work without mod_rewriten:

  1. Edit /app/config/core.php and uncomment the line that looks like:
    Configure::write(‘App.baseUrl’, env(‘SCRIPT_NAME’));
  2. remove these .htaccess files
    • /.htaccess
    • /app/.htaccess
    • /app/webroot/.htaccess
  3. Instead of http://www.example.com/index.php/posts/index all your urls will become http://www.example.com/index.php/posts/index

And that should be it! Simple ? Yes if you know how to do it, else you could be searching for hours. And it seemed I was not alone having this problem.

Step 3 : Start over from 0 and develop something else using their excellent manual

CakePHP

Comments

7 Responses to “Getting started with Cakephp without mod_rewrite”

  1. Jason on March 20th, 2010 4:32 pm

    You’re obviously an idiot. Point 3 http://www.example.com/index.php/posts/index is the exact same URL so there is no change from {this} to {this}. I wouldn’t trust your tutorial. Put more effort into it next time.

  2. admin on March 20th, 2010 4:36 pm

    Jason,

    Thanks for pointing out my copy/paste error in such a friendly way!
    Glad I could help you!

  3. kevando on February 16th, 2011 12:53 pm

    wow thanks!

  4. PHP Answers » Answers Archive » Re: Missing paths in URI on March 11th, 2011 12:30 pm

    [...] http://wwdj.wijndaele.com/getting-started-with-cakephp-without-mod_rewrite/ On 11 March 2011 12:30, Claudio wrote: [...]

  5. Parris on March 14th, 2011 2:02 pm

    I found it useful. That guy was an A-hole ignore him.

  6. Triklosan on June 24th, 2011 3:38 am

    Very useful. Thanks.

  7. Yuval on February 2nd, 2012 4:05 pm

    THANK YOU!!!!!!!

Leave a Reply