【问题标题】:zend project on shared hosting?共享主机上的zend项目?
【发布时间】:2011-12-09 04:36:59
【问题描述】:

我在 ubuntu OS 的 localhost 上创建了一个 zend 项目,它在我的本地系统上运行良好。现在我想在线上传这个项目。我购买了域名和托管。我有以下目录结构来上传文件。

/www.example.com/web/content/

所以 www.example.com 指向/www.example.com/web/content/ 文件夹。这个目录结构是不变的。我将所有 public 文件夹文件放到 /www.example.com/web/content/applicationlibrarytests 文件夹到 /www.example.com/web/。所以它与我的本地系统是同一目录,但只有公共文件夹被重命名为内容文件夹。

现在主页已成功显示,但是当我点击任何链接或重定向到任何其他网页时,我收到以下错误。

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.2 Server at example.com Port 80

有什么想法吗?

谢谢

【问题讨论】:

    标签: php http .htaccess shared-hosting zend-framework-mvc


    【解决方案1】:

    发生内部服务器 (HTTP 500) 错误的原因有很多。您应该检查您的 Web 服务器的错误日志以获取更多详细信息。如果您无权访问您的虚拟主机的错误日志,请让您的主机看看出了什么问题。

    【讨论】:

      【解决方案2】:

      阅读以下帖子后解决:

      http://www.zfforums.com/zend-framework-general-discussions-1/installation-configuration-3/problems-1and1-hosting-560.html

      所以它正在使用以下 .htaccess

      <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
      </IfModule>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2010-11-10
        • 2019-06-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-08-02
        相关资源
        最近更新 更多