简体   繁体   English

CakePHP 1.3.0 RC4安装

[英]CakePHP 1.3.0 RC4 Installation

I have been using 1.2.6 and downloaded 1.3 to try it out. 我一直在使用1.2.6并下载了1.3进行试用。 I am using wampserver with Apache 2.2.11. 我在Apache 2.2.11中使用wampserver。 I have mod rewrite enabled. 我启用了mod rewrite。 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. 当我使用cake 1.3控制台烘焙新的应用程序时,请确认将应用程序CAKE_CORE_INCLUDE_PATH的webroot / index.php设置为Cake1.3安装文件夹。 The result is a page thats missing CSS, missing a method. 结果是页面缺少CSS,缺少方法。 Typing in localhost/app/index.php will enable the program to find the app. 在localhost / app / index.php中键入将使程序能够找到该应用程序。 Therefore I have to assume the rewrite module isnt functioning properly for v1.3. 因此,我必须假设重写模块对于v1.3而言无法正常运行。 Is there something I have to add to the cake installation or app folder to make this function as it should? 我必须添加到cake安装或app文件夹中才能使其正常运行吗?

No, Cake is set up properly from the start. 不,Cake从一开始就已正确设置。 The thing that always trips me up is that I forget to set my Apache virtual host's AllowOverride value to All . 令我感到困扰的是,我忘记将Apache虚拟主机的AllowOverride值设置为All This allows the .htaccess file to be read. 这允许读取.htaccess文件。

Are there any error messages in your apache error logs? 您的apache错误日志中是否有任何错误消息?

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. 如果没有,您可能需要在httpd.conf文件中添加一个具有适当的AllowOverride权限设置的标记,以允许执行mod重写。

Can you load /css/style.css in your browser or does it give a 404? 您可以在浏览器中加载/css/style.css还是给出404?

这听起来像是一个愚蠢的问题,但是在Apache配置中对AllowOverride进行更改后,是否重新启动了Apache?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM