I have an almost new CPanel installation on 64-bit Centos 5.7. It is on a VPS with 2G of RAM. In the php.ini file, the memory_limit=256M. Despite these relatively large limits, I'm getting out-of-memory errors doing simple things like connecting to mysql. I've rebuilt Apache and PHP multiple times, and the only extra extensions enabled are gd and mysql.
CPanel plugins are MailScanner and Firewall.
Sample Error: Fatal error: Out of memory (allocated 7077888) (tried to allocate 1966080 bytes)
I've checked the code and there are no odd loops or anything that could be consuming that amount of memory, and the server has almost zero load. (Only thing that appears to be using any CPU is the MailScanner) Any ideas of what to check would be helpful.
My php.ini (verified with phpinfo())
max_execution_time = 30
max_input_time = 60
memory_limit = 256M
Originally we had the suphp extension installed, but with that we could not even get a simple phpinfo() page to come up. Once I removed the suphp extension, very simple pages worked (things that just include()ed other files, but most other operations caused out-of-memory errors.