If all the webistes hosted on the cPanel server are not working & you are getting errors as follows in the apache error log leaving all the hosted sites with 500 Internal Server Error

(12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/xxxx/public_html/index.php

Also while doing easyapche you get error as below

root@Server[/home/ukaps/public_html]# /scripts/easyapache –force
Can’t fork at /var/cpanel/perl/easy/Cpanel/Easy/Utils/MySQL.pm line 50.

It seems that mysql_config binary is missing or  corrupt . When easyapache is being executed it tries to use mysql_config and fails to find the binary..

To resolve this error please try to upgrading the mysql server.. It should help you resolve the issue

/scripts/mysqlup –force