Announcement

Collapse
No announcement yet.

eAccelerator: shmmax should be at least 2MB

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • eAccelerator: shmmax should be at least 2MB

    Sometimes accessing the website gives us 500 Internal server Error and we think that it is cause of permissions issue, but checking the server logs we get below error logs:

    [Mon Apr 08 05:58:35 2013] [error] [client xxx.xxx.xxx.xx] eAccelerator: shmmax should be at least 2MB
    [Mon Apr 08 05:58:35 2013] [error] [client xxx.xxx.xxx.xx] Premature end of script headers: index.php
    [Mon Apr 08 05:58:35 2013] [error] [client xxx.xxx.xxx.xx] eAccelerator: shmmax should be at least 2MB
    [Mon Apr 08 05:58:35 2013] [error] [client xxx.xxx.xxx.xx] Premature end of script headers: index.php
    [Mon Apr 08 05:58:36 2013] [error] [client xxx.xxx.xxx.xx] eAccelerator: shmmax should be at least 2MB


    Now to solve the above issue just follow below steps:

    Login to the server and check for the php.ini file from which the domain is loading the php configuration, you can check that by below command:

    php --ini


    After that fire below command

    cat /usr/home/lib/php.ini | grep eaccelerator.shm_max ( Here /usr/home/lib/php.ini is php.ini default path )
    eaccelerator.shm_max = "0"


    Now just edit the php.ini file and change the value for eaccelerator.shm_max from 0 to 2 or 4.

    And save the file and quit, this should fix the issue.
Working...
X