2012-03-25 80 views
0

我的symfony 1.4應用程序的生產環境會產生500內部服務器錯誤。Symfony 1.4切換到生產環境

想我的本地機器上覆制同樣的錯誤,它基本上得到了500內部服務器錯誤,以及與下列消息一起:

500 | Internal Server Error | sfConfigurationException 
You must provide a "file" parameter for this logger 

at() 
in SF_SYMFONY_LIB_DIR/log/sfFileLogger.class.php line 48 ... 
    { 

    if (!isset($options['file'])) 

    { 

     throw new sfConfigurationException('You must provide a "file" parameter for this logger.'); 

    } 


    if (isset($options['format'])) 

訪問我的Apache錯誤日誌和它規定如下:

[客戶端127.0.0.1]文件不存在:/的USR,引用者:http://localhost:8080/index.php

一個人建議檢查阿帕奇rewrite_module如果ENAB領導與否,並在訪問httpd.conf文件在我的MAMP/conf目錄/阿帕奇文件夾,裏面是

的LoadModule rewrite_module ...

,它是註釋掉,這我推斷它已被啓用。我已經設置: $ configuration = ProjectConfiguration :: getApplicationConfiguration('frontend','prod',true);

我在哪裏錯過了一招?你的迴應,建設性的批評是受歡迎和讚賞的!

謝謝! Parijat

回答

0

您能告訴我們您的factories.yml嗎? (在應用程序/ my_apps /配置/)

我猜你指定某事像那:

prod: 
    logger: 
    class: sfFileLogger 
    param: 
     level: debug 
     file: %SF_LOG_DIR%/%SF_APP%_%SF_ENVIRONMENT%.log 

但是你忘了定義文件條目(即:在記錄器必須把日誌信息)。檢查文檔here