我正在使用 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.
我遇到了同样的问题,需要进行大量研究才能确定实际问题。
新版本的 CakePHP 使用 pdo 来建立连接,而不是像以前那样使用 mysql 或 mysqli。由于您使用的是 Windows 环境,只需在 php.ini 文件中启用以下内容即可。
扩展名=php_pdo_mysql.dll
与使用 root 无关,当我尝试从 1.3 迁移到 2.0 时,我也发现它确实很烦人
至于 deceze 的傲慢回答,我发现 CakePHP 下载/安装/文档中没有提及此更改。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)