Wednesday 23 October 2013

Beginners Guide: Step by step Cakephp Installation Procedure on Xampp



Image courtesy: thebeak.edublogs.org
Now days, Cakephp web development is very popular for small as well as large projects, all over the world. Cakephp is popular because of its several advantages over other frameworks. Some of them are reusable code creation, MVC (Model View Controller) and strong debugging tools. Php developers found it best framework for web application development and content management.

Here i am going to teach you how to install and configure cakephp on your local xampp server. Follow the instructions below:

1. Go to cakephp.org and download the latest version of Cakephp (Latest version of cakephp is now 2.4.2 released today).

2. Copy the cakephp folder in xampp folder and unzip the file i.e. Local disk C--> xampp--> htdocs-->Cakephp folder.

3. Go to Cakephp folder -->app-->Config and rename the database.php.defult as database.php.

4. Make sure the host, login, password and database should be changed with proper values.
For example:

public $default = array(
            'datasource' => 'Database/Mysql',
            'persistent' => false,
            'host' => '192.100.1.1',
            'login' => 'saurabhsharma',
            'password' => 'saurabh999',
            'database' => 'niche_site',
            'prefix' => '',
            'encoding' => 'utf8'
        );

5. Change the values of the Security.salt and Security.cipherSeed. You can find these two strings here: Cakephp folder - ->app-->Config-->core.php
/**
 * A random string used in security hashing methods.
 */
    Configure::write('Security.salt', 'DYhG93b0qyJfIyfs2guVoUubWwvniR2G0FgaC9mi');

/**
 * A random numeric string (digits only) used to encrypt/decrypt strings.
 */
    Configure::write('Security.cipherSeed', '76859309657458942496749683645');



6. Open the browser and type: http://localhost/Cakephpfolder/ or http://127.0.0.1/Cakephpfolder/ and You're Done..!

Note:  If you find still any error please check the “Cakephp folder -->tmp” is writable and “apache mod_rewrite” is enabled.

1 comment:

  1. Thanks! This is a helpful beginner's guide.

    ReplyDelete