Tuesday, October 20th 2009

Plesk error 500 and [apc-error] apc_mmap: mmap failed: No space left on device
posted @ 10:55 am in [ Media Temple -PHP -Technology -Web Design ]

Upgrade Plesk 8.0.3 to Plesk 9.0.x on a Media Temple DV server and it dies 🙁

Error 500, nothing in the log files, no where to turn.

Anyways… after a chunk of digging around the problem is to do with running out of memory on the container that Mediatemple allocate for the DV server.

So… you can fix it by lowering the PHP memory requirements in the Plesk 9 PHP.ini file

cd /usr/local/psa/admin/conf/
vi php.ini

Then the setting you want to change is apc.shm_size from the default setting of 40 (Mb?) to 10

apc.shm_size = 10

And then check Plesk to see if it is working

/usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm

..and with a bit of luck you should be away! More details in a good discussion on the Plesk forums here

5 Responses to “Plesk error 500 and [apc-error] apc_mmap: mmap failed: No space left on device”

  1. mounir Says:

    thank you to take the time to write how to solve that kind issue 🙂
    i was tring to find out since a time from i was getting that error 🙂

  2. Mark Says:

    Alex you are a saint. I have been banging my head against a brick wall trying to solve this. Thank you for sharing.

  3. flatform.de Says:

    thx this just prevents me to reinstall my vserver !

  4. Jason Says:

    This solved my issue – just remember to restart psa – great work!

  5. Alex Says:

    This is also quite relevant in 10.x where the filwrpr seems to cause similar issues http://kb.parallels.com/en/113211

Leave a Reply