2012-01-16 97 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 ./*