Re: [請益] cakephp安裝方法

看板PHP作者 (kaleidoscope)時間15年前 (2009/06/11 14:51), 編輯推噓7(7014)
留言21則, 5人參與, 最新討論串2/2 (看更多)
※ 引述《sos0214 (kaleidoscope)》之銘言: : 由於一直用不好想來版上發問... : 首先我把cakephp下載之後解壓縮丟到/www底下 : 然後打localhost/cake/index.php : 安裝之後出現一堆錯不知道是怎麼回事... : 是需要設定什麼東西嘛?? 錯誤如下 Strict Standards: Redefining already defined constructor for class Object in E:\AppServ\www\cake\cake\libs\object.php on line 63 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\inflector.php on line 131 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\configure.php on line 136 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\configure.php on line 226 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\configure.php on line 906 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\configure.php on line 946 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\cache.php on line 71 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\cache.php on line 151 Strict Standards: Non-static method Configure::getInstance() should not be called statically in E:\AppServ\www\cake\cake\bootstrap.php on line 43 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\debugger.php on line 99 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\debugger.php on line 108 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\file.php on line 96 Strict Standards: Non-static method Debugger::invoke() should not be called statically, assuming $this from incompatible context in E:\AppServ\www\cake\cake\libs\debugger.php on line 575 Strict Standards: Non-static method Debugger::getInstance() should not be called statically, assuming $this from incompatible context in E:\AppServ\www\cake\cake\libs\debugger.php on line 575 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\cache\file.php on line 89 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\dispatcher.php on line 453 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\dispatcher.php on line 677 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\router.php on line 173 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\controller\controller.php on line 338 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\controller\controller.php on line 775 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\controller\component.php on line 237 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\controller\component.php on line 239 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\view\view.php on line 744 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\class_registry.php on line 68 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\class_registry.php on line 140 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\class_registry.php on line 148 Deprecated: Assigning the return value of new by reference is deprecated in E:\AppServ\www\cake\cake\libs\security.php on line 53 Fatal error: Declaration of SessionHelper::id() must be compatible with that of CakeSession::id() in E:\AppServ\www\cake\cake\libs\view\helpers\session.php on line 201 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.168.71.79

06/11 15:09, , 1F
蠻不一樣的,版本是?(下載網址是?)
06/11 15:09, 1F

06/11 15:24, , 2F
http://cakephp.org/ 有個download那邊
06/11 15:24, 2F

06/11 15:34, , 3F
我剛試了,直接解壓縮什麼都不改也不會有錯誤訊息,不
06/11 15:34, 3F

06/11 15:35, , 4F
過如果沒設 AllowOverride All,會是黑白畫面
06/11 15:35, 4F

06/11 15:36, , 5F
所以 cake 的起跳門檻,應該是 allowoverride 吧..
06/11 15:36, 5F

06/11 15:36, , 6F
CakePHP 1.2.3.8166 ;我直接抓是這一版
06/11 15:36, 6F

06/11 15:40, , 7F
改all之後還是一樣...
06/11 15:40, 7F

06/11 15:45, , 8F
改後要 restart apache;不過不改也只有黑白而已,不應
06/11 15:45, 8F

06/11 15:46, , 9F
有錯誤訊息;還有,所有內頁網址應該失效了,因為 cake
06/11 15:46, 9F

06/11 15:46, , 10F
就是很依賴 allowoverride..
06/11 15:46, 10F

06/11 15:46, , 11F
只有一個是錯誤. 其他都是建議
06/11 15:46, 11F

06/11 15:47, , 12F
你的 php 版本是?
06/11 15:47, 12F

06/11 15:47, , 13F
你該查一下 cake 需要的 php 版本,這會有語法差異
06/11 15:47, 13F

06/11 15:47, , 14F
我連一個建議都不會跑出來的
06/11 15:47, 14F

06/11 15:48, , 15F
PHP Version 5.2.6
06/11 15:48, 15F

06/11 15:51, , 16F
6.0.0
06/11 15:51, 16F

06/11 15:53, , 17F
您還真是走在時代最尖端啊......
06/11 15:53, 17F

06/11 16:20, , 18F
嗯..降個版本吧..我也不知 6.0 有何差別
06/11 16:20, 18F

06/11 16:25, , 19F
降版本之後就OK了....感謝各位
06/11 16:25, 19F

06/11 17:43, , 20F
PHP 6好像加強了OO的支援,看這些錯誤以後PHP6出來要
06/11 17:43, 20F

06/11 17:43, , 21F
改很大...
06/11 17:43, 21F
文章代碼(AID): #1ACAbsWi (PHP)
討論串 (同標題文章)
文章代碼(AID): #1ACAbsWi (PHP)