Add a check for maxmem= < 512 in cpanel.config