The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

shmget() failed: Invalid argument

Discussion in 'General Discussion' started by sh4ka, May 1, 2008.

  1. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    On a RHE 5.1 + cPanel server I got this error usually from apache logs and from php -v output:

    Code:
    [root@server.roo393.com:~]php -v
    [B]shmget() failed:  Invalid argument
    Failed to start up concurrent users module![/B]
    PHP 5.2.5 (cli) (built: May  1 2008 22:00:18)
    Copyright (c) 1997-2007 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
        with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
        with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
    [root@server.roo393.com:~]
    
    Tried recompiling latest php 5.2.x and it is always happening while using Zend Optimizer. As you should know, optimizer is need for most web apps today... so it's a must.

    Any ideas about this error?

    Thanks.
     
  2. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    It also happens with a different zend opt. version:

    Code:
     shmget() failed: Invalid argument
    Failed to start up concurrent users module!
    PHP 5.2.5 (cli) (built: May 1 2008 22:00:18)
    Copyright (c) 1997-2007 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
    with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
    Any ideas?
     
  3. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    This was a kernel memory issue.. set this at /etc/sysctl.conf and it got fixed:

    Code:
    kernel.shmmax = 4294967295
    kernel.shmall = 268435456
    Thanks!
     
Loading...

Share This Page