1. Install the following software:
- Apache (apache_2.2.3-win32-x86-no_ssl.msi)
- PHP (php-5.2.0-win32-installer.msi)
- Mysql(mysql-5.0.27-win32.exe)
2、cakephp(cake_1.1.12.4205.zip) Installation
- Decompress cake_1.1.12.4205.zip and copy the contents in the directory to the cake directory of Apache htdocs.
3. Apache configuration (httpd. conf)
Phpinidir "F:/Workshop/PHP /"
Loadmodule php5_module "F:/Workshop/PHP/php5apache2_2.dll"
Addtype application/X-httpd-PHP. php
AllowOverride all
Loadmodule rewrite_module modules/mod_rewrite.so
- Append the default startup PHP File
Directoryindex index.html index. php
4. PHP configuration (PHP. INI)
Extension = php_mysql.dll
Session. save_path = "F:/Workshop/tmp/PHP/session"
5. CakePHP database connection Configuration
- Copy database. php. default in the cake/APP/config directory to database. php.
- Modify the following content of database. php:
VaR $ default = array ('driver '=> 'mysql ',
'Connect '=> 'mysql _ connect', // Connect Method
'Host' => 'localhost', // MySQL host
'Login' => 'cakeblog', // dB login Username
'Password' => '123', // dB Login Password
'Database' => 'test', // dB name
'Prefix' => ''); // table name prefix