2010-03-08 64 views
1

我爲本地機器使用XAMPP,但由於我想運行像mysql工作臺和一些測試框架這樣的應用程序,我決定切換到LAMP自安裝。我使用的是Ubuntu的,並遵循以下指令:https://help.ubuntu.com/community/ApacheMySQLPHP從XAMPP遷移到LAMP時出現問題..內存限制錯誤

但問題是LAMP消耗了太多的內存(RAM)我已經分配了124 MB的內存,但當我運行Drush時它仍會給內存耗盡錯誤(Drupal命令行)。當我做drush cc到清除緩存它給我以下內容:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /var/www/----/sites/all/modules/ubercart/uc_order/uc_order.order_pane.inc on line 150 

Call Stack: 
    0.0020  185624 1. {main}() /opt/drush/drush.php:0 
    0.0254 1303672 2. drush_main() /opt/drush/drush.php:37 
    0.2674 5107784 3. drush_bootstrap() /opt/drush/drush.php:71 
    0.2676 5109872 4. _drush_bootstrap_drupal_full() /opt/drush/includes/environment.inc:173 
    0.2676 5151032 5. drupal_bootstrap() /opt/drush/includes/environment.inc:655 
    0.3030 7739048 6. _drupal_bootstrap() /var/www/missmoti/includes/bootstrap.inc:989 
    0.3122 8855792 7. _drupal_bootstrap_full() /var/www/missmoti/includes/bootstrap.inc:1078 
    0.3445 12387320 8. module_load_all() /var/www/missmoti/includes/common.inc:2608 
    0.5194 32586544 9. drupal_load() /var/www/missmoti/includes/module.inc:14 
    0.5251 33361112 10. include_once('/var/www/missmoti/sites/all/modules/ubercart/uc_order/uc_order.module') /var/www/-----/includes/bootstrap.inc:617 

Drush command could not be completed. 

在每個錯誤它顯示了我一個回溯,我想這個默認調試器,我不知道在Apache或我的PHP配置它吃記憶。如果有人可以幫助我「D很高興

以下另一個錯誤:

Fatal error: Call to undefined function dsm() in /var/www/-----/sites/all/modules/custom/gtpath/gtpath.module on line 180 
Call Stack 
# Time Memory Function Location 
1 0.0002 120144 {main}() ../index.php:0 
2 1.7604 68224112 theme() ../index.php:36 
3 2.0188 77346112 call_user_func_array () ../theme.inc:658 
4 2.0188 77347024 gtpath_preprocess_page() ../theme.inc:0 

我怎麼處理這個默認調試我怎麼把它關掉?

回答

1

Drush也可能運行在php-cli中,它有一個不同的php.ini,你可以在ubuntu在/ etc/php5/cli中。如果你剛剛使用內存,你應該沒問題。

+0

是的,這是現在的關鍵,兩個php.ini cli和另一個分配128 MB RAM,現在工作正常。感謝你的回答。 – Geshan 2010-03-10 04:20:33

0

最後的錯誤是什麼?因爲當devel模塊被禁用時你使用了dms,可能是你在dev中使用的一些調試代碼

+0

我故意使用DMS,以便我可以知道發生了什麼。我發現了xdebug也安裝了,但仍然存在問題。 某些已定義的函數(如ns())也未找到。 – Geshan 2010-03-08 10:58:26

相關問題