Cakephp installation and blog tutorial step by step

CakePHP is one of the best PHP MVC framework which is purely inspired by Ruby on Rails. I worked on ROR for many years. So I know CakePHP has very similar ROR standards. Here In this article I will show you about CakePHP installation on linux box in very detailed information. I created the very basic blog application using CakePHP and It is free for download.

Cakephp installation and blog tutorial step by step

I am using the linux box for installation following commands will be useful for any linux installation. You can use the any linux OS like (Ubuntu, Fedora, Redhat, centos, etc… )

#pear channel-discover
#pear remote-list -c cakephp
#pear install cakephp/CakePHP

Go to folder where you want to create the project
#cd /var/www/html/

Create the project using following command
#cake bake project cakeblog

"name": "cakeblog",
"repositories": [
"type": "pear",
"url": ""
"require": {
"pear-cakephp/cakephp": ">=2.4.0"
"config": {
"vendor-dir": "Vendor/"

#cd cakeblog
#chown purab:purab -R cakeblog
#chown apache:apache -R cakeblog/tmp

Download debug_kit
Add into the Plugin Dir

Download commposer

using following command and console:
#curl -sS | php

Create the composer.json file in cakeblog folder and add following lines in that file

After that execute the following command

#php composer.phar install

Open the webroot/index.php file and add the following lines at line no 82.

ROOT . DS . APP_DIR . '/Vendor/'

You can download my Blog code from Following Link.


Reference Used:


Add a Comment

Your email address will not be published. Required fields are marked *