[英]How to Set up Zend Framework 2 On Server
I am trying to deploy a Zend Framework 2 Application. 我正在尝试部署Zend Framework 2应用程序。 I want to set the DocumentRoot to the public folder (inside zend).
我想将DocumentRoot设置为公用文件夹(在zend内部)。 It does not currently seem to be working.
目前似乎无法正常工作。
Using a Centos 6 Os 使用Centos 6 Os
The path looks correct and I have restarted the server (its a vps). 该路径看起来正确,并且我已经重新启动了服务器(其vps)。
I think I'm updating hte right file because if the path is incorrect I get a server error. 我认为我正在更新此文件,因为如果路径不正确,则会出现服务器错误。 Currently it is taking me to the public_html folder and I have to navigate to the public.
目前,它会将我带到public_html文件夹,并且我必须导航到公众。
Thank you, Matt 谢谢你,马特
I followed the steps on the link below and was able to point the server to the correct point. 我按照下面链接上的步骤进行操作,并能够将服务器指向正确的位置。 Following Tims suggestion I am in the process of moving everything out of the public html directory and pointing the server to home/public/index.php.
按照Tims的建议,我正在将所有内容移出公共html目录,并将服务器指向home / public / index.php。
http://www.inmotionhosting.com/support/website/file-management/changing-the-document-root-with-root-access http://www.inmotionhosting.com/support/website/file-management/changing-the-document-root-with-root-access
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.