2011-11-30 44 views
0

我刚刚购买了Zend Studio 9的许可证。我对Zend框架的使用经验很少,以前没有Zend Studio的经验。我使用http://framework.zend.com/manual/en/作为该框架的教程,并浏览了位于http://www.zend.com/en/products/studio/resources的资源,以获得演播室软件的帮助。默认的索引控制器没有被新的Zend Studio项目调用

我的主要问题是,使用zstudio创建新的Zend项目后,我没有看到最初的欢迎消息。下面是我使用的步骤:

  1. 我已经安装了Zend服务器并确认网络应用程序都是工作(做了一些测试文件,它们都正确解析)。

  2. 使用Zend Studio创建一个新项目。
    a。文件 - >新建 - >本地PHP项目 b。对于位置,我使用的是C:\ Program Files \ Zend \ Apache2 \ htdocs。
    c。对于版本我使用默认的“Zend Framework 1.11.11(内置)”

  3. 我去http://localhost:81/projectname。而不是被调用的默认索引控制器,我只看到我的目录结构。

加成信息: 操作系统:Windows 7 PHP版本:5.3

错误日志:

>[Wed Nov 30 14:32:30 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] 
>[Wed Nov 30 14:32:30 2011] [warn] pid file C:/Program Files (x86)/Zend/Apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? 
>[Wed Nov 30 14:32:30 2011] [notice] Digest: generating secret for digest authentication ... 
>[Wed Nov 30 14:32:30 2011] [notice] Digest: done 
>[Wed Nov 30 14:32:31 2011] [notice] Apache/2.2.16 (Win32) mod_ssl/2.2.16 OpenSSL/0.9.8o configured -- resuming normal operations 
>[Wed Nov 30 14:32:31 2011] [notice] Server built: Aug 8 2010 16:45:53 
>[Wed Nov 30 14:32:31 2011] [notice] Parent: Created child process 13788 
>[Wed Nov 30 14:32:32 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] 
>[Wed Nov 30 14:32:32 2011] [notice] Digest: generating secret for digest authentication ... 
>[Wed Nov 30 14:32:32 2011] [notice] Digest: done 
>[Wed Nov 30 14:32:33 2011] [notice] Child 13788: Child process is running 
>[Wed Nov 30 14:32:33 2011] [notice] Child 13788: Acquired the start mutex. 
>[Wed Nov 30 14:32:33 2011] [notice] Child 13788: Starting 64 worker threads. 
>[Wed Nov 30 14:32:33 2011] [notice] Child 13788: Starting thread to listen on port 10081. 
>[Wed Nov 30 14:32:33 2011] [notice] Child 13788: Starting thread to listen on port 81. 

回答

2

如果您导航到http://localhost:81/projectname/index/index不正确的屏幕负荷?

如果是这样的:

  • 检查在公共目录中的.htaccess文件包含了Zend框架的正确重写规则。
  • 检查你的httpd.conf文件并确保index.php被添加到DirectoryIndex指令中。

我认为解决方案将成为第二个子弹,但让我知道你找到了什么,如果这不起作用,我可以进一步帮助。确保在对httpd.conf进行任何更改后重新启动apache。

否则,请报告您直接访问控制器时看到的任何错误,并检查Apache的error_log文件以查看是否有任何错误。

+0

该文件不存在。这里是我的目录结构是什么样子: #.buildpath #。项目 #.settings/ #.zfproject.xml #应用程序/ #文档/ #库/ #公共/ #测试/ 我将指令添加到我的本地主机,但做完后,Apache不会重新启动。 –

+0

那么'public/.htaccess'不存在?这是你的问题的一部分。您不需要在httpd.conf中添加指令,只需确保''包含index.php。默认情况下,它只包含index.html – drew010

相关问题