Relax
Relax

Reputation: 75

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. But, when i transfer my all Project data to remote server it not works.

my zend framework projects good on localhost.

I also read the manual of 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 changeapache config and also mod_rewrite.

Note :- my project works on localhost as i have make some changes after reading this documentation.

any help is highly appreciated.

Upvotes: 0

Views: 1499

Answers (1)

Config
Config

Reputation: 1692

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:

    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)?

    [development : production]
    phpSettings.display_startup_errors = 1
    phpSettings.display_errors = 1
    resources.frontController.params.displayExceptions = 1
    
  3. Is your application in the development environment? You can most likely set this in your index.php like so:

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

Upvotes: 1

Related Questions