Home > drush > Drush memory_limit problem on shared host

Drush memory_limit problem on shared host

November 8Hits:2
Advertisement

This happened when I restarted Apache because my site was down. Normally restarting Apache or other service doesn't break Drush, but today it happened.

I'm sure on my server my php.ini has memory limit set to 1024M, this is my own dedicate server, and the Drupal installation runs well, I check the status report on Drupal (admin/reports/status), the PHP memory limit is set to 1024M.

This happened on my Drupal sites on my server.

When I...

[root: sites]# drush st 

I got

Drush command terminated abnormally due to an unrecoverable error.       [error] Error: Out of memory (allocated 10485760) (tried to allocate 122880 bytes) in /home/mywebsite/public_html/modules/system/system.module, line 1336 

I also tried...

[root: sites]#  php -i | grep memory_limit 

And I got

memory_limit 1024M 

Is there anyone has some ideas?

My Server:

  • CENTOS 5.9 x86_64
  • WHM 11.36.0 (build 14)
  • PHP 5.2.17
  • Drush 5.8

I've tried drush status --debug and it gave me :

Bootstrap to phase 0. [0 sec, 3.02 MB]
[bootstrap] Drush bootstrap phase : _drush_bootstrap_drush() [0.01 sec, 3.23 MB] [bootstrap] Cache HIT cid: 5.8-commandfiles-0-15880291c3f5c759ee66bf106fd77cbd [0.01 sec, 3.24 MB] [debug] Bootstrap to phase 0. [0.04 sec, 7.43 MB]
[bootstrap] Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.05 sec, 7.49 MB] [bootstrap] Drush command terminated abnormally due to an unrecoverable error.
[error] Error: Out of memory (allocated 10485760) (tried to allocate 122880 bytes) in /home/mywebsite/public_html/modules/system/system.module, line 1336 [0.06 sec, 9.28 MB]

Answers

Your particular setup might be one that (deliberately) has 2 php.ini files:

  1. for Apache, e.g. on your server at: /etc/php5/apache2/php.ini (or similar path depending on your distro)
  2. for command line (i.e. for drush) e.g. on your server at: /etc/php5/cli/php.ini (or similar path depending on your distro)

(I believe that this is perfectly normal kind of setup to have 2 files, I have this myself.)

You need to ensure that memory_limit is 1024M is set for /etc/php5/cli/php.ini(or similar path depending on your distro) php executed in the command line/terminal/console i.e. drush. You could also try memory_limit is -1 which allows the server to allocate as much memory as is available.

Tags:drush

Related Articles

  • Drush memory_limit problem on shared host November 8

    This happened when I restarted Apache because my site was down. Normally restarting Apache or other service doesn't break Drush, but today it happened. I'm sure on my server my php.ini has memory limit set to 1024M, this is my own dedicate server, an

  • ISPConfig 3 problem with shared IPSeptember 15

    Hello, I have a problem with shared IP on my server. The problem is when I add a domain and point it to the same IP 123.123.123.123 the browser show only one domain. eg: i have domain1.com pointed to IP 123.123.123.123, domain2.com pointed to 123.123

  • Problem with shared ssh keysApril 14

    Following the process I've used in other environments, I've tried setting-up shared keys between my Mac and my CentOS 4 webserver. I've seen the same problem with my older Ubuntu 7.10 workstation trying to connect via keys to the same webserver. I ha

  • Why does APC (or similar) cause performance problem for shared hosting?September 8

    I'm using shared hosting, and I can't enable APC. There was a thread about that here, and the only reason suggested was for security (php-cgi vs mod_php). I queried the host, and they said it was due to performance reasons, specifically that the I/O

  • Office Communicator 2007 R2 problems when sharing desktopsOctober 7

    We have a number of machines on our local lan (no firewalls) with Office Communicator 2007 R2 (with Enterprise CALS) installed on. All but a couple of them can share their desktops with no problem at all. However on these few machines when sharing de

  • What are the problems with sharing an Access database through online storage service, like Dropbox?September 11

    I have a desktop database I created in Access. I'd like to share the database with a single collaborator, who can have full privileges to the database (table access). However, my collaborator is much less tech-savvy so to make it easier for him, I ha

  • Problem seeing shared drive when connected via 802.11acJanuary 16

    I have a late 2013 Macbook Pro Retina, with the current update of Yosemite, and I have an odd problem. To be honest, I'm not sure if it's laptop related, or somehow related to my router. The issue is, when I am connected to my wireless network via 80

  • Linux Fedora +Virtual box +vagrant = problem with shared foldersFebruary 28

    My host OS:Fedora 21 x86_64 Virtual box: 4.3.20_RPMFusion r96996 vagrant: 1.7.2 I use shared folders with NFS synchronization for my projects . When vagrant try create shared folders i have seen errors like too big timeout of connection or other prob

  • Problems with shared files via Samba from Windows and UbuntuSeptember 3

    This is my intended result: have a linux machine (let's call it UbuntuServer) share two sorts of file shares: home folders one common folder with shared documents Then I have a number of Ubuntu Clients (client1, client2 etc) en some windows machine (

  • Problems accessing shared folder in Windows Server 2008November 2

    In Windows Server 2008, I have a shared folder. For my username: NTFS permission (read/modify) Share Permissions (read/modify) Result when trying to access the share: I can traverse directory and read files, but I cannot write files. When I try to ex

  • Problem accessing shared folder on same PCApril 29

    I have this problem: If I share a folder, users on other PCs can access that folder without problems. However, I cannot acces that folder on my own PC through the network share name. To clarify: If my PC is called MY_PC, and I share the folder as Sha

  • Permission Inheritance Problems on Shared Folders - Windows Server 2003June 7

    I'm having a problem with file and folder permissions not inheriting. I've set the permissions on the main folder but the permissions are not inheriting down to the sub-folders and files. Even if I set full control permissions directly for a user, th

  • Problems with sharing between Windows 7 and Windows XP

    Problems with sharing between Windows 7 and Windows XPAugust 15

    I'm trying to share files between a PC with Windows XP and a laptop with Windows 7. I've been trying to do this for years, which may have resulted in a bit of a mess, but I wouldn't know because I understand very little of what's going on. There are

  • Drush installation problem - Non-empty values for magic_quotes_gpcJanuary 21

    I have successfully installed and configured Drush and i am able to work with it. Unfortunately, I am getting an error like this: The following restricted PHP modes have non-empty values: magic_quotes_gpc. This configuration is incompatible with drus

  • Problems when sharing a battery between motors and radio in an RC car

    Problems when sharing a battery between motors and radio in an RC carApril 20

    Background I am building an RC Car that I am trying to modify to control from an Android phone. When I connect the remote control module as well as the car circuitry (servo & motor) to separate batteries, everything works as expected. When I connect

  • problem with shared libraries on 14.04May 11

    I installed a program, but when I try to start it, it terminates with an error message saying: error while loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory I didn't find it in /usr/lib, is there anything

  • Problem with shared folder on Ubuntu 14.04December 20

    I've mounted a shared folder on my virtual machine, but I can't access it. I can only access it through sudo nautilus but even when I use this command, I still can't access the directory from terminal. When I click on the shared folder, and go on Pro

  • With Lion, Problems Accessing Shared NTFS Folders with SMB://November 4

    We are testing a local login script that we created for our Macintosh users on Lion. It has worked fine on all OS X versions prior to 10.7. Listed below is the script that we are using. When we run the script, it now mounts a folder called "home"

  • skype screen sharing with gnome shell 3.2 problem? October 21

    does anyone experience this problem: when sharing full screen on skype, using gnome shell, the panel disappears, all windows disappear and the other user don't receive the screen either. sort of a freeze. i'm on ubuntu 11.10, oneiric ocelot. gnome sh

  • Drupal 7 shared cloud hosting problemFebruary 7

    I'm hosting one drupal 7 website on site5.com cloud shared hosting and it seems to be that drupal cache queries go very slow on almost every table that starts with name cache_... This site is using 1-2 custom modules, i18 module only for front page t

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 16 q. 0.662 s.