我正在使用Wamp服务器,我正在尝试安装CakePHP 2.0.0,但我遇到了麻烦.
我把CakePHP 2.0.0文件放在我的wamp服务器文件夹" www"然后" cake"文件夹中.
当我http://localhost/cake在浏览器中输入地址时,会显示以下消息:
CakePHP: the rapid development php framework
Release Notes for CakePHP 2.0.0-dev.
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 647]
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 651]
Your tmp directory is writable.
The FileEngine is being used for caching. To change the config edit APP/config/core.php
Your database configuration file is present.
Cake is NOT able to connect to the database.
Editing this Page
To change the content of this page, create: APP/views/pages/home.ctp.
To change its layout, create: APP/views/layouts/default.ctp.
You can also add some CSS styles for your pages at: APP/webroot/css.
Run Code Online (Sandbox Code Playgroud)
小智 13
我遇到了同样的问题,需要进行大量的研究才能确定实际问题.
CakePHP的新版本使用pdo建立连接,而不是像之前那样建立mysql或mysqli.在使用Windows环境时,只需在php.ini文件中启用以下内容即可.
延长= php_pdo_mysql.dll
没有使用root,我也发现当尝试从1.3移动到2.0时,这是一个真正的烦恼
至于deceze的傲慢回答,我发现在CakePHP下载/安装/文档的任何地方都没有提到这个变化.