2012-01-16 103 views
0

我運行安裝了Apache/MySQL/PHP5的Ubuntu 11.04。我完全按照安裝過程形式此鏈接:在Ubuntu 11.04中安裝CakePHP 2

[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.thtml中取代默認的佈局,我有錯誤的這些行炮轟:

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的新手。謝謝!!!!!!

回答

1

確保你的apache/php用戶有權讀取所有的蛋糕文件。類似chmod -R 755 ./*