简体   繁体   English

如何在远程服务器上运行zend框架

[英]how to run zend framework on remote server

I am working on zend Framework , I already create a website using zend Framework but now I want to run my Project on remote server. 我正在使用zend Framework ,已经使用zend Framework创建了一个网站,但是现在我想在远程服务器上运行我的Project。 But, when i transfer my all Project data to remote server it not works. 但是,当我将所有Project数据传输到远程服务器时,它将无法正常工作。

my zend framework projects good on localhost . 我的zend框架在localhost上的项目很好。

I also read the manual of Getting Started with Zend Framework By Rob Allen, www.akrabat.com. 我还阅读了Getting Started with Zend Framework By Rob Allen, www.akrabat.com.

So, after reading this manual I found this important article. 因此,阅读本手册后,我发现了这篇重要文章。

You must also ensure that Apache is configured to support .htaccess files. This is usually done by
changing the setting:
! AllowOverride None
to
! AllowOverride All
in your httpd.conf file. Check with your distribution’s documentation for exact details. You will not be able
to navigate to any page other than the home page in this tutorial if you have not configured mod_rewrite
and .htaccess usage correctly.

But actually I am using sharing remote server so from where I change apache config and also mod_rewrite . 但是实际上我正在使用共享远程服务器,因此我从那里更改apache config以及mod_rewrite

Note :- my project works on localhost as i have make some changes after reading this documentation. 注意:-我的项目在localhost上工作,因为我在阅读本文档后进行了一些更改。

any help is highly appreciated. 非常感谢您的帮助。

I get the feeling there's an error that's not being displayed. 我感到有一个未显示的错误。 Are you sure you are displaying all of your errors? 您确定要显示所有错误吗?

  1. Add the following to your index.php : 将以下内容添加到您的index.php

     error_reporting(E_ALL); ini_set('display_errors', 'on'); 
  2. Have you set these in your config file (most likely the [development : production] section of your application.ini )? 您是否在配置文件中设置了这些设置(很可能是application.ini[development : production]部分)?

     [development : production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 resources.frontController.params.displayExceptions = 1 
  3. Is your application in the development environment? 您的应用程序在development环境中吗? You can most likely set this in your index.php like so: 您很可能可以在index.php设置,如下所示:

     // Define application environment defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'development')); 

This might show errors that are being hidden from you. 这可能会显示对您隐藏的错误。 I hope the error can help you solve your problem. 我希望该错误可以帮助您解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM