If you want to reduce the memory and cpu consumption of Apache.

Add the below parameter,

RLimitNPROC 40

To prevent apach being overwritten run the below command,

/usr/local/cpanel/bin/apache_conf_distiller –update

Now you are done.