How to Install Cakephp with step by step guide

Cakephp
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

More by this Author


Comments 11 comments

Sajem 5 years ago

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

Thanks


phpnayeem profile image

phpnayeem 5 years ago from 260, South Goran, Shantipur, Khilgaon, Dhaka-1219 Author

Thanks for your Interested about Cakephp.


Belal 5 years ago

Very Useful...thanks Author


Ramkumar 5 years ago

Excellent Information. 100% accurate...

Please write more articles about cakephp.


Munish 3 years ago

wow ! its a very helpful ..... i like it....


pram 3 years ago

please extend your knowledge and fool anyone


Pierce 3 years ago

Nice Tutorial


Christiano 2 years ago

Forgive my English translated by google ...

I need help .

I downloaded cakephp , unzipped the contents into a folder also called cakephp folder and put in localweb , getting access URL like this:

http://127.0.0.1/cakephp/

This URL gives me access to the cake home screen where it gives me the initial connection information , rewrite, etc ...

In a second step I made a copy of the app folder and rename the original and the copy for test1 and test2 respectively.

At this time it was only possible to see the cited page through URL 's:

http://127.0.0.1/cakephp/teste1

and

http://127.0.0.1/cakephp/teste2

However this behavior is not repeated in online hosting ( uolhost ) .

When copying the same files to the web folder ( public site files ) and access the URL

http://www.site.com.br/cakephp/teste1 the cake asks me for the contest : " CakephpController could not be found . "

In an attempt to make him understand he should demand from " cakephp " and that this was not a contest made ​​this change:

Router :: connect (' / cakephp / ', array ( 'controller' = 'pages' , 'action' = 'display' , ' home') ) ;

but got no result. The cake kept thinking that cakephp is a controller who disappeared ...

What can I do to get it online , the same local behavior ?


Stas 18 months ago

Codelobster has special wizard for CakePHP installation: http://www.codelobster.com/cakephp.html


Nikhil Mane (VIIT ) 15 months ago

Thank you sir...for giving this instruction of installation guide..

and steps ...give all about more on cakePHP...


olivedev 3 months ago

There is an even easier way to install CakePHP. If you are using Cloudways platform, then you can quickly and easily Install CakePHP on cloud server with Debian OS. Here is an example: https://www.cloudways.com/blog/install-cakephp-on-...

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.


    Click to Rate This Article
    working