Install CakePHP on WAMP in Eight easy steps

Hi, I would like to show how to get CakePHP running in eight easy steps. If you would like to run the more elaborate installation process, do check out the installation guide here:CakePHP Installation. But if you are the type who likes to get things done as fast as possible and easily, you can just follow the steps below:

  1. Download the latest realease in Zip format from Github
  2. Create a folder in your wamp/www location. Name it “CakePHP-App”. Unzip the contents of the downloaded Zip file into the created folder
  3. Open the file at CakePHP-App/app/Config/database.php.default and update the database properties. Save and Rename the file to database.php. Below is a Sample of the edited contents
  4. class DATABASE_CONFIG {
    
    	public $default = array(
    		'datasource' => 'Database/Mysql',
    		'persistent' => false,
    		'host' => 'localhost',
    		'login' => 'root',
    		'password' => 'root',
    		'database' => 'prod_learn_cakephp',
    		'prefix' => 'cake_',
    		//'encoding' => 'utf8',
    	);
    
    	public $test = array(
    		'datasource' => 'Database/Mysql',
    		'persistent' => false,
    		'host' => 'localhost',
    		'login' => 'root',
    		'password' => 'root',
    		'database' => 'test_learn_cakephp',
    		'prefix' => 'cake_',
    		//'encoding' => 'utf8',
    	);
    }
    

    Do note that you have to create your database before CakePHP can connect to it. CakePHP does not create your database for you.

  5. Open the file at CakePHP-App/app/Config/core.php and replace the values for Security.Salt and Security.cipherSeed with a random string (alpha-numeric) and random string (numeric) respectively. Below is a sample of the edited contents
  6. /**
     * A random string used in security hashing methods.
     */
    	Configure::write('Security.salt', 'ejkeeneddejiowj44543216qhywekui');
    
    /**
     * A random numeric string (digits only) used to encrypt/decrypt strings.
     */
    	Configure::write('Security.cipherSeed', '8859665899657755625566');
    
    
  7. Create a folder called “DebugKit” (which is used for debugging purposes in CakePHP) in CakePHP-App/app/Plugin. Download and Unzip the contents of into the created folder
  8. Open the file at CakePHP-App/app/Config/bootstrap.php and uncomment the line which has
    CakePlugin::load('DebugKit'); //Loads a single plugin named DebugKit
    
  9. Set Read/Write Access for the tmp folder located at CakePHP-App/app/tmp
  10. Use your browser to navigate to http://<>:<>/CakePHP-App/. If you see a screen like this all highlighted in green, you have successfully installed CakePHP.
    CakePHP Successful install screen

    CakePHP Successful install screen

Do drop a comment if there are any issues.