The PHP memory limit has to be changed through WHM:

Main >> Service Configuration >> PHP Configuration Editor