Dear All,

I have a new server and I am facing some setup&configuration problems.

symptom: server extremely unstable, sometimes fast sometimes
slow or even down.
WHM on IP:2086 or https://ip:2087 is not available

SSH used to be ok, but when trying to run a command
I always got
"Cannot allocate memory" and my provider told me
"your server still appears to be using more resources than allocated to it.
and then "I have disabled your custom apache install in /usr/local/apache for now.
It needs to be tuned to not start so many copies of itself so it does
not use up all of your memory.
> Dear Sir,
> THank you for your reply but the problems are not solved yet.

Correct. I disabled Apache to allow you a chance to SSH in to attempt
to resolve. Every time I start Apache (or restart the server with
Apache enabled) it eats up all available memory, and will not allow
anything else to run (including SSH).

> I can logon WHM now, but apache is down. I tried to restart it but it
> says
> root 3361 1.0 0.2 13880 12712 ? S 07:01 0:00
> /usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd
> and in SSH mode, I got
> [email protected] [~]# service httpd restart
> httpd: unrecognized service

I removed the symlinks in /etc/rc*.d/*httpd and renamed
/etc/init.d/httpd to /etc/init.d/httpd.OFF. Also, I renamed
/usr/local/apache/bin/httpd to httpd.OFF to ensure it would not start
automatically. (To allow you access via SSH)

> Please tell me where the problems are and tell me how to solve them if
> you don't have time, I will do it myself.

The apache installation in /usr/local/apache is using up all available
memory. Suggested fix is to limit "MaxServers" to a smaller number.
Perhaps 10-20
I have modified your /usr/local/apache/etc/httpd.conf file to limit the
number of servers to 10.
so now I can't login WHM nor SSH.

My question is: is this a server system problem
or a security problem?
Provider said they have done some optimization, but problem continues
Or is that some kinda virus that keep eat up all the RAMs?

Anybody please kindly help me?