مشكلة في الترحيل إلى المصباح من xampp .. خطأ في الحد من الذاكرة

StackOverflow https://stackoverflow.com/questions/2400322

سؤال

كنت أستخدم XAMPP لجهازي المحلي ولكن كما أردت تشغيل تطبيقات مثل MySQL Work Bendch وبعض أطر اختبار قررت التبديل إلى تثبيت المصباح الذاتي. أنا أستخدم Ubuntu وتبعت التعليمات في: https://help.ubuntu.com/Community/apachemysqlphp.

ولكن المشكلة هي أن المصباح يستهلك الكثير من ذاكرتي (RAM) خصصت 124 ميغابايت حاليا ولكن لا يزال يعطيني خطأ مرهق بالذاكرة عند تشغيل 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 أو VP تكوينه بتناول الذاكرة. إذا كان أي شخص يمكن أن يساعدني "د أن أكون سعيدا.

خطأ آخر أدناه:

    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 مختلفة لذلك، يمكنك العثور عليه في Ubuntu in / ETC / PHP5 / CLI. إذا كنت مجرد استخدام ذاكرة الوصول العشوائي هناك يجب أن تكون على ما يرام.

نصائح أخرى

الخطأ الأخير هو لأنك تستخدم DMS عند إلغاء تنشيط وحدة DEVEL. قد يكون بعض رمز تصحيح الأخطاء المستخدمة في DEV.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top