我是用XAMPP我的本地机器,但我想跑,如MySQL工作台和一些测试框架,我决定改用LAMP自安装应用程序。我使用的是Ubuntu和遵循的指示在: https://help.ubuntu.com/community/ApacheMySQLPHP

但问题是,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

我怎么处理这个默认调试器?我如何将其关闭??

有帮助吗?

解决方案

Drush也可能用PHP-CLI运行。这里是它的一个不同的php.ini,您可以在/ etc / PHP5 / CLI Ubuntu的找到它。如果你刚起来RAM的使用有你应该罚款。

其他提示

在最后一个错误是因为你使用DMS时devel模块被停用。可能是你在开发中使用的一些调试代码。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top