简体   繁体   English

在服务器上的Zend Web开发中显示应用程序错误

[英]Showing Application Error in Zend Web Development on server

I am new to Zend framework. 我是Zend框架的新手。 I developed an application and its working perfectly working on localhost and on freestlye servers , but on other server its showing some thing like this 我开发了一个应用程序,它可以在localhost和freestlye服务器上正常工作,但在其他服务器上却显示出类似这样的内容

An Error Occurred
Application Error

I tried all feasible changes in .htaccess file but it couldn't work. 我尝试了.htaccess文件中所有可行的更改,但无法正常工作。 here is content of my .htaccess file 这是我的.htaccess文件的内容

SetEnv APPLICATION_ENV development
    RewriteEngine On
    # The following rule tells Apache that if the requested filename
    # exists, simply serve it.
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    # The following rewrites all other queries to index.php. The 
    # condition ensures that if you are using Apache aliases to do
    # mass virtual hosting, the base path will be prepended to 
    # allow proper resolution of the index.php file; it will work
    # in non-aliased environments as well, providing a safe, one-size 
    # fits all solution.
    RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::$
    RewriteRule ^(.*)$ - [E=BASE:%1]
    RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]

    # PHP settings
    #php_flag magic_quotes_gpc off
    #php_flag register_globals off
    #php_flag short_open_tag on

Kindly help me to solve this issue. 请帮助我解决这个问题。 Thanks in advance 提前致谢

在application.ini文件的Production下添加您的凭据,让我知道它是否有效

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

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