Wednesday, December 3, 2014

Howto install CakePHP 2.5 on Centos 6

Installation of this PHP programming framework is based on the installation guide CakePHP from There is a document on upgrades from CakePHP 1.3, here.

The Centos Linux 6.4 setup based on requirements:
httpd 2.2.15-28x

Step 1: Extract Cakephp 

Download the code from
or from Linux console with proper permission (e.g. use sudo if you are not root user)

cd /var/www/html
chown -R apache cakephp-2.5.6
ls cakephp-2.5.6

This gives us the folders;
Cakephp2 folders

Cakephp2 folders for app

Step 2: Test installation

Ensure the web server is running, and open a web browser to that installation. E.g. http://localhost/cakephp-2.5.6/

It should appear with a page similar as below;

Step 3: Post installation

Follow instructions given at the test page to rectify any errors/recommendations. E.g.
  1. Change value of Security.salt in core.php file
  2. Change value of Security.cipherSeed in core.php file
  3. Configure to use a database in database.php
  4. Install the DebugKit
Its made easy to migrate from CakePHP 1.3 to 2.5. Good read on upgrading of 1.3 to 2 (in no particular order)
  1.  stacks
  2. Upgrade to CakePHP 2.
  3. CakePHP Migration.
  4. Authentication.

1 comment:

Muhammad Azaz Qadir said...

Debian is a much better option than CentOS for CakePHP. Package management on Debian is way better than on CentOS. Debian also get updates regularly. They immediately patched the DirtyCow bug recently. Also, installing CakePHP on debian is easier if you use a PaaS. Here is an example:

Blog Archive