开发者

Zend framework deployment on the shared hosting

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!


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


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜