Requirement for CakePHP & Installation Guide
Hello Friends,
I am working with CakePHP since last few months. Initially i was worried that how to adjust with new framework and how much time will it take to learn. But its very easier to learn with and very easy to work with. Here in my first post, i am showing you the Requirement & steps for CakePHP installation.
Requirements :
Apache (mod_rewrite is preferred, but not must required)
PHP 4.3.2 or greater.
MySQL 4 or greater (CakePHP supports a variety of database)
Installation Steps:
1) Download CakePHP source & Extract all. Copy all folders and paste it to your project directory.
2) App folder is your application folder, Cake folder is Core CakePHP library folder. Webroot is used to add JS files, CSS files and others.
3) Open app/config/core.php and change the value of Security.salt & Security.cipherSeed to any random value. (For security reason, need to change it from default value otherwise it will give an error
4) For database setup, change the app/config/database.php.default to app/config/database.php
5) Create database in phpmyadmin and set the connection parameter in above database.php.
6) Disable SQL debug at bottom page. Add below class to app/webroot/css/cake.generic.css
.cake-sql-log
{
display:none;
}
7) Configure::write('Cache.disable', true); in app/config/core.php8) Disable errors and warning by changing value of "debug" Constant to 0 in app/config/core.php. ( Configure::write('debug', 0);)
If you find any problem in this than let me know by comment.






I am
about 1 year ago
hi ,
I am having Xammp . Pls tell me how to install CakePHP ..
about 1 year ago
hi ,
I am having Xammp . Pls tell me how to install CakePHP ..
about 1 year ago
Above are the steps. Follow them. where are you facing the problem ?
about 1 year ago
Above are the steps. Follow them. where are you facing the problem ?
about 1 year ago
I have a problem when I want use oracle database. Can u help me?
about 1 year ago
I have a problem when I want use oracle database. Can u help me?
about 1 year ago
@Haezal – I have not use Oracle database with CakePHP. So don’t have any idea about it.
about 1 year ago
@Haezal – I have not use Oracle database with CakePHP. So don’t have any idea about it.
about 1 year ago
owh it's ok.. Do you have a friend who was using the Oracle + cakephp?
I really need to know how to connect cakephp with oracle database.
about 1 year ago
owh it's ok.. Do you have a friend who was using the Oracle + cakephp?
I really need to know how to connect cakephp with oracle database.
about 1 year ago
@Haezal – Nop. Generally PHP is used with MySql. So all my friends who have worked with CakePHP, they knows only MySql. You can go for Google search. You will find the solution.
about 1 year ago
@Haezal – Nop. Generally PHP is used with MySql. So all my friends who have worked with CakePHP, they knows only MySql. You can go for Google search. You will find the solution.
about 1 year ago
I already search at google. But I don't find any solution. If you don't mind, can I see your example system that you used CakePHP. Just for reference.
about 1 year ago
I already search at google. But I don't find any solution. If you don't mind, can I see your example system that you used CakePHP. Just for reference.
about 1 year ago
Hi,
Can i need any extra thing to install cakephp in windows environment?
As we need to change hosts file in linux for advance development.
about 1 year ago
Hi,
Can i need any extra thing to install cakephp in windows environment?
As we need to change hosts file in linux for advance development.
about 7 months ago
# ./cake Deprecated: Directive ‘register_long_arrays’ is deprecated in PHP 5.3 and greater in Unknown on line 0 Deprecated: Directive ‘safe_mode’ is deprecated in PHP 5.3 and greater in Unknown on line 0 Deprecated: Directive ‘magic_quotes_gpc’ is deprecated in PHP 5.3 and greater in Unknown on line 0 Warning: set_time_limit(): Cannot set time limit in safe mode in /var/www/cake_2/lib/Cake/Console/ShellDispatcher.php on line 53 Call Stack: 0.0002 641120 1. {main}() /var/www/cake_2/app/Console/cake.php:0 0.0012 794648 2. ShellDispatcher::run() /var/www/cake_2/app/Console/cake.php:24 0.0012 795288 3. ShellDispatcher->__construct() /var/www/cake_2/lib/Cake/Console/ShellDispatcher.php:70 0.0012 795528 4. set_time_limit() /var/www/cake_2/lib/Cake/Console/ShellDispatcher.php:53 Welcome to CakePHP v2.0.0-dev Console ————————————————————— App : app Path: /var/www/cake_2/app/ ————————————————————— Current Paths: -app: app -working: /var/www/cake_2/app -root: /var/www/cake_2 -core: /var/www/cake_2/lib Changing Paths: Your working path should be the same as your application path to change your path use the ‘-app’ param. Example: -app relative/path/to/myapp or -app /absolute/path/to/myapp Available Shells: sh: /tput: not found acl [CORE] api [CORE] bake [CORE] command_list [CORE] console [CORE] i18n [CORE] schema [CORE] testsuite [CORE] upgrade [CORE] To run a command, type cake shell_name [args] To get help on a specific command, type cake shell_name –help
WTF Deprecated????
about 6 months ago
jst use ur instruction on installing cake-php(using–localhost,wamp server 2.0, php-5.2.5,mysql-5.0,appache-2.2), but m nt able to cnct with installation, error is–address not found on server(address is correct-i chkd it). plz help me…!!!