Installing cakePHP on Ubuntu 8.04 (Hardy Heron)

Posted on: September 9, 2008

Installing CakePHP on Linux/Ubuntu is a bit tricky as you have to on the mod-rewrite and set the AllowOverride property from None to All. This is why I am giving you the exact steps to install CakePHP on your Ubuntu/Linux LAMP Server successfully so that your CakePHP index page shows with proper formatting with css.

1. Check the mod-rewrite whether it is enabled or not by running the following command:

sudo a2enmod rewrite

You will get a message like this “This module is already enabled!” if your mod-rewrite is already enabled. If mod-rewrite is not enabled, follow the on-screen instructions to install it.

2. Open and edit the default file from this directory /etc/apache2/sites-available/default by using the following command:

sudo nano /etc/apache2/sites-available/default

if you don’t know how to use nano, than you may use another way to set the write permission by running the following command though it’s not recommended 😉

sudo chmod -R 755 /etc/apache2/sites-available/default

3. Find the following Directory structure:

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

4. Find AllowOverride None and replace with the following text

AllowOverride All

5.Restart apache using:

sudo /etc/init.d/apache2 force-reload

And you are done! 🙂
Now you should now be able to view http://localhost/ with the correct css formatting for the cake default page.


5 Responses to "Installing cakePHP on Ubuntu 8.04 (Hardy Heron)"

thanks, very helpfull

thanks for your help, i was stuck on this one!

thanx a ,ot for this..!!


I was trying to install cakePHP on ubuntu. I already did it for windows. And it was working well. But on ubuntu i failed. Thanks for this tutorial. It’s very helpful………

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

I am Nurul Ferdous a Zend Certified Engineer (ZCE), serving at Bangladesh Internet Press Limited (BIPL) as programmer. I am a FOSS advocate and love RnD.


Me @ LinkedIn

View Nurul Ferdous's profile on LinkedIn

My Photos @ Flickr

Blog Stats

  • 42,882 [ Vistors ]

My Twitter Updates

%d bloggers like this: