CAKEPHP INSTALLATION - UBUNTU
sudo chmod -R 777 /var/www/cakephp
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 851]
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 855]
public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'root', ------------->(Enter username of phpmyadmin)
'password' => 'password', ------------->(Enter password of phpmyadmin)
'database' => 'database_name', ------------->(Enter created database name)
'prefix' => '',
//'encoding' => 'utf8', );
sudo gedit /etc/apache2/sites-enabled/000-default
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
to
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart
- Install Apache Server, MySQL, PHP
- Download the current release from cakephp.org and un(zip/tar).
- Copy the unzip cakephp files into var/www/ folder.
- Now give the permissions to the cakephp folder by entering the command line in terminal
sudo chmod -R 777 /var/www/cakephp
- Enter localhost/cakephp in browser. We will get warnings like
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 851]
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 855]
- Edit the file core.php in cakephp/app/config/core.php
- Change the random string for Security.salt ( configure random string used in security hashing methods just by generating 63 random alpha numeric characters for random strings.Get the random strings from the mentioned urlhttps://www.grc.com/passwords.htm)
- Now change the numeric string for Security.cipherSeed (Enter any 29 random numbers).
- Create a database for cakephp in phpmyadmin.
- Now rename the file cakephp/app/config/database.php.default to database.php.
- Change the details of the database
public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'root', ------------->(Enter username of phpmyadmin)
'password' => 'password', ------------->(Enter password of phpmyadmin)
'database' => 'database_name', ------------->(Enter created database name)
'prefix' => '',
//'encoding' => 'utf8', );
- Now edit the 000-default file in /etc/apache2/sites-enabled/000-default
sudo gedit /etc/apache2/sites-enabled/000-default
- And change the AllowOverride None to AllowOverride All
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
to
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
- Now enable the mode rewrite
sudo a2enmod rewrite
- Now restart the apache2
sudo /etc/init.d/apache2 restart