如何在服务器上设置 Zend Framework 2

How to Set up Zend Framework 2 On Server

我正在尝试部署 Zend Framework 2 应用程序。我想将 DocumentRoot 设置为 public 文件夹(在 zend 内)。它目前似乎没有工作。

使用 Centos 6 Os

路径看起来正确,我已经重新启动了服务器(它是 vps)。

我想我正在更新正确的文件,因为如果路径不正确,我会收到服务器错误。目前它将我带到 public_html 文件夹,我必须导航到 public。

谢谢, 马特

我按照下面 link 中的步骤进行操作,并且能够将服务器指向正确的点。按照 Tims 的建议,我正在将所有内容移出 public html 目录并将服务器指向 home/public/index.php。

http://www.inmotionhosting.com/support/website/file-management/changing-the-document-root-with-root-access