Last updated on January 5th, 2020 at 09:30 pm
Cakephp is an open source web application framework. It follows the Model-View-Controller (MVC) approach and is written in PHP, modeled after the concepts of Ruby on Rails (Wiki). In this post i explain you how to install/setup cakephp in your local and remote server.
Simple steps to install cakephp
Note: You need to enable rewrite module.
Step 1 : Go to CakePHP Official Website and Download updated Cakephp framework file and unzip the file.
Step 2 : Copy the downloaded folder in wamp folder : C⇒www⇒wamp⇒(cakefolder) / C⇒xamp⇒htdocs⇒(cakefolder) / Upload file to server .
Step 3 : Before start configuring cakephp you must create database first. After creating database go to (cakefolder)->app->Config->database.php.defult and rename it as database.php. Now you need to make required changes in it.After the changes, the configuration setting look like
class DATABASE_CONFIG { public $default = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'root', 'password' => '', 'database' => 'trinitycake', 'prefix' => '', //'encoding' => 'utf8', ); }
Configure::write('Security.salt', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
Configure::write('Security.cipherSeed', '76859309657453542496749683645');
Configure::write('Security.salt', 'gk5454545fsdfUEsdfsbDsdh');
Configure::write('Security.cipherSeed', '54548785454521');