Total Pageviews

Thursday, July 17, 2014

Install CakePHP

We need,

  • A web server (Eg:Apache)
  • PHP  5.2.8 or greater version
  • A database server (Eg: MySQL)
  • Enabled pdo_mysql in PHP configurations
  • Basic PHP Knowledge (Object Oriented Programming, MVC Programming Pattern)
Download CakePHP (http://cakephp.org/)


Once you download CakePHP ZIP folder,extract files and rename the folder as cakephp or whatever….
Put this folder in your document root. I’m using WAMP Server. So my document root is www.
Then access this cakephp folder through your browser.

Figure 1 : Browser Display

In the first red line it says to change the value of 'Security.salt'.
"Notice (1024): Please change the value of 'Security.salt' in APP/Config/core.php to a salt value specific to your application. [CORE\Cake\Utility\Debugger.php, line 849]"

Open "/app/Config/core.php" and change the following code
Configure::write('Security.salt', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
to 
Configure::write('Security.salt', 'pl345e-P45s_7h3*S@l7!');
and refresh the browser.

Now you will see that first red line will disappear.

Second red line it says to change the value of "Security.cipherSeed".
"Notice (1024): Please change the value of 'Security.cipherSeed' in APP/Config/core.php to a numeric (digits only) seed value specific to your application. [CORE\Cake\Utility\Debugger.php, line 853]"

Open "/app/Config/core.php" and change the following code
Configure::write('Security.cipherSeed', '76859309657453542496749683645');
to 
Configure::write('Security.cipherSeed', '7485712659625147843639846751');
and refresh the browser.

Now you will see that second red line will disappear.

In yellow line it says to configure the database settings.
"Your database configuration file is NOT present.
Rename APP/Config/database.php.default to APP/Config/database.php"

Open "/app/Config/database.php.default"
and change the following code 

public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'user',
'password' => 'password',
'database' => 'database_name',
'prefix' => '',
//'encoding' => 'utf8',
);
Insert your hostname for host, database username for login. database password for password and database name for database


No comments:

Post a Comment