Flag This Hub

How to Install Cakephp with step by step guide

By


Cakephp
See all 3 photos
Cakephp

Cakephp

CakePHP is a framework, not a set of libraries. CakePHP is a rapid development framework for PHP. It contains dozens of functions and methods that simplify web development

Features of CakePHP

  • It has Model-View-Controller (MVC) Architecture.
  • CakePHP has Application Scaffolding.
  • CakePHP supports MySQL and PostgreSQL database and more.
  • It support UNIX and Windows Platform and easy to install.
  • CakePHP has authentication, access control, localization, security, sessions and request handling.
  • CakePHP uses easy and flexible templating.

Installation of CakePHP (version 1.3.6):

  • Before running CakePHP we must need

01. Apache (HTTP) server with session and mod_rewrite.

02. PHP 4.3.2 or greater.

03. Database (MySQL or PostgreSQL)

  • Download CakePHP

01. Go to cakephp.org and download the latest version of cakephp.

02. Cakephp comes in a .zip file so unzip it.

03. Now we get Cakphp file, rename (ex: Mycake1.3.2) this cakephp file.

04. Three main folders of cakephp file is-

- app

- cake

- vendors

  • We want the application to be called in the browser, so drop this renamed file (Mycake1.3.2) into our localhost root. (localhost may be named webroot, www, htdocs etc.)
  • Now typing http://localhost/ Mycake1.3.2 in my web browser. We get Cakephp welcome screen.
  • Now open project (Mycake1.3.2 ) in php text editor (like notepad++, NetBeansIDE)

In Cakephp Welcome Screen, it has one or two error.

To remove this error, we must be change

01. Security.salt value.

02. Security.cipherSeed value.

Welcome Screen of Cakephp
Welcome Screen of Cakephp

»Change Security.salt value:

01. Open this project in php text editor.

02. Go to app/config/core.php file

03. In line no 204 change Security.salt value.

04. Then refresh the startup screen. Our 1st error has been removed.

»Change Security.cipherSeed value:

01. Open this project in php text editor

02. Go to app/config/core.php file

03. In line no 208 change Security.cipherSeed value.

04. Then refresh the startup screen. Our 2nd error has been removed.

»MySQL connection settings:

01. Open this project in php text editor

02. Go to app/config/database.php.default file and rename (remove .default) this file.

03. Rename file will be like this database.php

04. Then refresh the startup screen.

»Database Configuration settings:

class DATABASE_CONFIG {

var $default = array(

'driver' => 'mysql',

'persistent' => false,

'host' => 'localhost',

'login' => 'root',

'password' => '',

'database' => 'db_cake',

'prefix' => '',

);

Cakephp Installation is now complete. Cake is now working correctly.

Writable Screen of Cakephp without error
Writable Screen of Cakephp without error

Comments

Sajem 9 months ago

This is very important Tutorial for me. I learn this and I am interested about cake.

Thanks

phpnayeem 9 months ago

Thanks for your Interested about Cakephp.

Belal 8 months ago

Very Useful...thanks Author

Ramkumar 5 months ago

Excellent Information. 100% accurate...

Please write more articles about cakephp.

Submit a Comment
Members and Guests

Sign in or sign up and post using a hubpages account.



    Like this Hub?
    Please wait working