Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member sh4ka's Avatar
    Join Date
    May 2005
    Posts
    434

    Default shmget() failed: Invalid argument

    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
    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.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. #2
    Member sh4ka's Avatar
    Join Date
    May 2005
    Posts
    434

    Default

    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. #3
    Member sh4ka's Avatar
    Join Date
    May 2005
    Posts
    434

    Default

    This was a kernel memory issue.. set this at /etc/sysctl.conf and it got fixed:

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

Similar Threads & Tags
Similar threads

  1. disk_usage_include_sqldbs - Invalid argument
    By Snowman30 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-09-2009, 10:38 AM
  2. Replies: 33
    Last Post: 08-21-2007, 01:46 PM
  3. Error sem_post: Invalid argument
    By a_raims in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-18-2006, 11:47 AM
  4. sem_post: Invalid argument
    By bibink in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-06-2006, 01:05 PM
  5. invalid argument while reading flags on fpexe
    By tedderz in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-06-2003, 05:59 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube