共享主机上的 Zend 框架部署 [英] Zend framework deployment on the shared hosting
问题描述
我想将我在 zend 框架中制作的项目部署到我的共享主机.我的项目有这样的结构:
I want to deploy my project made in zend framework to my shared hosting. My project has such structure:
申请文档图书馆过时的民众脚本测试
application docs library Obsolete public scripts tests
这就是我所做的:
我将 Zend 文件夹(所有库文件)复制到库文件夹中
I copied Zend folder (all library files) into library folder
我将上面的所有结构复制到 public_html/projects/project(因此,如果我输入 www.mydomain.com/projects/project/public,我将运行该项目
I copied all the structure above into public_html/projects/project (so if I type www.mydomain.com/projects/project/public I run the project
我试图点击某个链接,以便将我重定向到 www.mydomain.com/projects/project/public/someController/someAction
I tried to click on some link so that it redirected me to www.mydomain.com/projects/project/public/someController/someAction
不幸的是,我看到的只是一个白色的空白页面.在本地(使用 Zend 服务器 CE)它运行良好这里看起来 Zend 没有意识到它应该对这个 url 做任何事情并重定向到适当的操作.
Unfortunately all i see is a white, empty page. Locally (using Zend server CE) it worked perfectly Here it looks like Zend doesn't recognize that it should do anything with this url and redirecto to appropriate action.
我错过了什么?问候!
推荐答案
您看到空白页面而不是错误的原因是 error_reporting
在您的生产服务器上可能默认处于关闭状态.
The reason you see empty page instead of errors is that error_reporting
is probably off by default on your production server.
您可以更改设置以显示 application.ini
中的错误和异常.
You may change the settings concerting displaying errors and exceptions in application.ini
.
没有显示错误的其他情况是视图中出现问题(例如视图助手),它必须返回字符串,而不是异常.
The other cases the errors are not displayed is something goes wrong in the view (eg. view helpers), which must return string, not the exception.
检查事项:
- 路径
- include_path
- 对需要此权限的文件/目录进行写入的权限
- PHP 版本
- .htaccess 设置
这篇关于共享主机上的 Zend 框架部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!