[英]installing CakePHP 2 in Ubuntu 11.04
我正在運行安裝了Apache / MySQL / PHP5的Ubuntu 11.04。 我通過此鏈接完全遵循了安裝過程:
[http://developify.wordpress.com/2011/08/12/install-cakephp-on-ubuntu/][1]
我最終進入沒有顏色/樣式的CakePHP默認頁面,盡管此錯誤被包裹在紅色背景中:
URL rewriting is not properly configured on your server. 1) Help me configure it 2) I don't / can't use URL rewriting
mod_rewrite已經啟用,我不知道我的安裝有什么問題。
而且,如果我通過創建自己的default.ctp替換默認布局,則會受到以下錯誤提示的轟炸:
Warning (2): include(/var/www/app/View/Layouts/default.ctp): failed to open stream: Permission denied [CORE/Cake/View/View.php, line 595]
Warning (2): include() [http://php.net/function.include]: Failed opening '/var/www/app/View/Layouts/default.ctp' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') [CORE/Cake/View/View.php, line 595]
順便說一句,在Windows中它運行良好,也許MS不在乎文件權限。
請幫助我,我是CakePHP的新手。 謝謝!!!!!!
確保您的apache / php用戶有權讀取cake的所有文件。 像chmod -R 755 ./*
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.