How to install CakePHP

10 Jun

CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.

  1. Webserver for PHP (Wamp server or Xamm)
  2. PHP 5.3.2
  3. MySQL 5
  4. CakePHP 1.3.1 :

Installation CakePHP with Web Server

  1. Extract CakePHP file that you have download from URL above to the place and rename to “cake” only
  2. Go into this folder: cake/cake/console/ and right click on “cake.bat” file; copy this file path to past in Path of Environment Variables (System Properties -> Advanced  -> System variables)
  3. Point to PHP bin and copy it’s path to the Path of Environment Variables
  4. Point to MySQL bin and copy it’s path to the Path of Environment Variables too.
  5. Open CMD and type : cake and enter to test that cake works or not?

*Notation: Path of CakePHP, PHP, and MySQL must be separated by “;”

If you install CakePHP on Windows, it has a little bit problem that we have to fix.

Fix The Problem

  1. In cake/cake/console : copy directory “templates” to directory “libs”
  2. In cake/cake/libs/cache/file.php : change $data = unserialize((string)$data); to $data = unserialize(trim((string)$data)); in line 176

Referenced by:

Leave a comment

Posted by on June 10, 2010 in PHP


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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: