CakePHP 1.3.0 RC4 安装
我一直使用1.2.6并下载1.3来尝试。我正在使用 wampserver 和 Apache 2.2.11。我启用了模组重写。当我使用 cake 1.3 控制台烘焙新应用程序时,在验证应用程序 CAKE_CORE_INCLUDE_PATH 的 webroot/index.php 是否设置为 Cake1.3 安装文件夹后。结果是页面缺少 CSS、缺少方法。输入 localhost/app/index.php 将使程序能够找到该应用程序。因此我必须假设 v1.3 的重写模块无法正常工作。我是否必须在蛋糕安装或应用程序文件夹中添加一些内容才能使此功能发挥应有的作用?
I have been using 1.2.6 and downloaded 1.3 to try it out. I am using wampserver with Apache 2.2.11. I have mod rewrite enabled. When I bake a new application using the cake 1.3 console, after I verify that the webroot/index.php of the application CAKE_CORE_INCLUDE_PATH is set to the Cake1.3 Installation folder. The result is a page thats missing CSS, missing a method. Typing in localhost/app/index.php will enable the program to find the app. Therefore I have to assume the rewrite module isnt functioning properly for v1.3. Is there something I have to add to the cake installation or app folder to make this function as it should?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不,Cake 从一开始就设置正确。总是让我困惑的是我忘记将 Apache 虚拟主机的
AllowOverride
值设置为All
。这允许读取.htaccess
文件。No, Cake is set up properly from the start. The thing that always trips me up is that I forget to set my Apache virtual host's
AllowOverride
value toAll
. This allows the.htaccess
file to be read.您的 apache 错误日志中是否有任何错误消息?
您是否用新的应用程序目录替换了以前的应用程序目录?如果没有,您可能需要添加一个标签,并在 httpd.conf 文件中设置适当的 AllowOverride 权限,以允许执行 mod 重写。
您可以在浏览器中加载 /css/style.css 还是给出 404?
Are there any error messages in your apache error logs?
Did you replace the previous application's directory with the new one? If not, you may need to add a tag with the appropriate AllowOverride permissions set inside your httpd.conf file, to allow mod rewrite to execute.
Can you load /css/style.css in your browser or does it give a 404?
这听起来可能是一个愚蠢的问题,但是在您对 Apache 配置中的 AllowOverride 进行更改后,您是否重新启动了 Apache?
This may sound like a silly question, but after you made your changes to AllowOverride in your Apache configuration, did you restart Apache?