Zend framework deployment on the shared hosting

a 夏天 提交于 2019-12-11 13:26:00

问题


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

This is what I have done:

  1. I copied Zend folder (all library files) into library folder

  2. 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

  3. I tried to click on some link so that it redirected me to www.mydomain.com/projects/project/public/someController/someAction

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.

What have I missed? Greetings!


回答1:


The reason you see empty page instead of errors is that error_reporting is probably off by default on your production server.

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.

Things to check:

  • paths
  • include_path
  • permissions to write for files/dirs which do require this
  • PHP version
  • .htaccess setup



回答2:


stating the obvious here but I'd check your apache error log.




回答3:


You should check if the server is running php as a module or CGI, in the later case it will not read the SetEnv of .htaccess and you will have to set to development mode in index.php by hand, or specify your config in php.ini



来源:https://stackoverflow.com/questions/4795944/zend-framework-deployment-on-the-shared-hosting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!