Farooq Yousuf

Neat. Interesting. Funny. Motivating. And More.

Archive for the ‘cakephp’ Category

I was working on setting up CakePHP on my Mac the other day and got it working with one problem. It can get quite frustrating trying to figure out whats going wrong with the install and when you finally solve the problem it feels like you just won a million bucks.

The CSS styling wasn’t showing up on the welcome page and I Googled all over searching for the solution to no avail. Good thing my brother had already gotten past this stage and helped me out. I didn’t find this solution anywhere online so I decided to blog about for anyone else who might encounter this problem. Below is a screen shot of the error I kept getting, you’re probably getting the same one, if not then you’re in the wrong place :D

picture-9

Before I tackle the problem I was having, make sure you go here and follow the Apache and mod_rewrite (and .htaccess) setup correctly. After following those steps and restarting your Apache server, you still don’t see the CSS style on the welcome page, give this a shot:

Navigate to this /etc/apache2/users, once there you should see a username.conf file (your “username” will be different obviously).

picture-16

Open that file in a text editor, I used TextMate: mate farooqyousuf.conf

In that file make sure the “AlloweOverride” is set to “All”, see below:

picture-17

And voila! This should solve your problem. Right after I made this change, I restarted my Apache server and saw all the CSS styling on the CakePHP welcome page. Hope this helped! :D

picture-24

Popularity: 34% [?]

Great CakePHP Tutorial!

Posted by Farooq Yousuf On March - 2 - 2009

So lately, I’ve been learning PHP and CakePHP. I came across this really great CakePHP tutorial, really recommend going over it if you’re a newbie like myself ;)

Introduction to CakePHP

Popularity: 32% [?]

Enter your email address:

Delivered by FeedBurner

About Me

Just posting stuff that I find neat, interesting, funny, motivating and more. Hope you enjoy! :)

Twitter

    Photos

    flickrRSS probably needs to be setup