CakePHP — Fixing Mod Rewrite Issue in Ubuntu

Here we are going to take about how to fix ” Fixing Mod Rewrite Issue” in CakePHP. I’m sure if you have(tried) installed CakePHP in Ubuntu, you definitely would have seen this message.

” URL rewriting is not properly configured on your server.”

And the darn page opens without any css and no URL rewriting (ofcourse, duh!)

Just follow the below checklist, I’m sure you might have missed any one of’em(like i did now ^^”)

Following are the Checklist for Fixing Mod Rewrite Issue

1. Verify all three .htaccess. (yep, three!)




(Important: If you have tried unzip the content of CakePHP source, somehow, .htaccess in ~/projects/cakephp/ got left out… damn!!!)

2. Enable mod rewrite ofcourse! (just double check it :P)

3. Proper permission for /tmp and /webroot

4. Enable “AllowOverride” in Apache

5. Check for `cake.generic.css’ (Seriously, crazy fix!!!)

CakePHP guys showing the URL rewriting issue if the css is not present. sheessh!!! (pss: I’m using CakePHP 1.3, my favorite!!!)

Well,  Thats it for Fixing Mod Rewrite Issue!!!! I’m sure one em will help you fellas or else you will ended up spending hours scratching your head!! xD

9 thoughts on “CakePHP — Fixing Mod Rewrite Issue in Ubuntu”

  1. First of all I want to say great blog! I had a quick question in which I’d like to ask if
    you do not mind. I was interested to find out how
    you center yourself and clear your thoughts before writing.
    I have had a difficult time clearing my thoughts in getting my thoughts out there.
    I truly do enjoy writing however it just seems like the
    first 10 to 15 minutes are wasted just trying to figure out how to begin. Any ideas
    or hints? Many thanks!

    1. Thank you for the compliments 🙂

      Well I’m actually quite the same as you, I lack now and then when writing… its really quite difficult to focus on one thing when we have lot of other important things to do (work-home-games-friends). Sometimes, I do the belong things to focus when writing
      1) Have a short goal/target. I’m trying to write atleast 2 posts a week. Unless we set a goal, we won’t write anything 🙂 (I’m sure we will fail by first week, but, we can catch by improve a lil by next week and so on)
      2) I spent 15-30 mins each morning and just scribble in notepad and browse/research of ‘what to write’. And in weekend, I just sit and expand this scribbling to full long post . (also notes in my phone, just paste the link or thoughts come across my mind)
      3) Music, shuts all the noises and early morning 6 – 7 is great time to think and write. Its hard at first but you’ll get addicted to explore more if you start.
      4) Last one, Have one longer goal. Mine is, I’m currently learning a lot in my current work place and sometimes I won’t and just stuck with some support work, I really want to keep learning a lot in programming as it helps my career goal in long run. Even if workplace is not the place to learn, we can find a lot in web and start learning, trying and writing in our blog, so to remember 🙂

      You can try approach of having 10-15 mins of preping a day and slowing increase, just don’t give up. Even a 15 mins a day can make you to write a good post atleast 1 or 2 month. Once you see this achievement, I’m sure you will gradually improve this by seeing your success. (Also put up Google analytics, seeing the number of visitors also improves our thirst to write more))

  2. I have been browsing online more than 4 hours today, yet
    I never found any interesting article like yours.
    It’s pretty worth enough for me. Personally, if all web owners and bloggers
    made good content as you did, the net will be a lot more useful
    than ever before.

  3. Heya i’m for the first time here. I found this board and I find It really useful & it helped me out
    much. I hope to give something back and help others like you helped me.

  4. If some one wants to be updated with hottest technologies afterward he must be visit this web page and be up to
    date daily.

  5. Hi! I’m at work browsing your blog from my new iphone 3gs!
    Just wanted to say I love reading your blog and look forward to
    all your posts! Carry on the superb work!

  6. Hello There. I found your blog using msn. This is an extremely well
    written article. I will make sure to bookmark it and return to read more of your useful info.
    Thanks for the post. I’ll certainly comeback.

Leave a Reply