After much research and ending up here reading your thread.. i was quite depressed.
Plesk says they can have a Red Hat Enterprise 3 Default configuration run up to 2000 domains on a server with 4 gigs ram. Well i have that default config along with 2 gigs ram on a dual xeon server... mirror raid array of 200 gig drives.
I am only able to run 650 domains before apache crashes with a segmentation fault... well USE TO...
Scott at EV1 has solved my problems.
See what happened was I added about 200 domains to my server and ran into the same issue with Too Many Files open so i changed my limits EVERYWHERE....
Recompiled PHP
Recompiled IMAP
Recompiled Apache (httpd)
Also had to change my MaxClients in the config file cuse I was maxing out on that to I set it to this.
CODE
########################################
# APACHE SERVER/MAXCLIENT SETTINGS
########################################
ServerLimit 1000
<IfModule prefork.c>
StartServers 10
MinSpareServers 10
MaxSpareServers 80
MaxClients 1000
MaxRequestsPerChild 40
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 600
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 10
# Turned off to use less memory
# HTTPD memory usage went from 29M to 26M per pid
ThreadGuardArea off
</IfModule>
# Research this
#ListenBacklog
########################################
The ServerLimit is the important one to note becuase if you don't have that you can only go up to 250 MaxClients before HTTPD will start caughing errors on restart.
So then we were able to go to about 650 standard hosted domains before HTTPD on restart would just say Starting [Failed] - how annoying
Upon doing
CODE
service httpd graceful
then it would tell me the segmentation fault error.
A special tech got on the server and we started debugging and found that one of the additional packages that needs to be recompiled is OpenSSL
So if you are having any of these errors
"Too Many Files Open" - Apache Error Log
"Segmentation Fault" - service httpd graceful (restarting / starting apache)
or problems with Horde and similar problems
==
Errors:
[root@server home]# tail -f /var/log/httpd/error_log
[Wed Nov 03 17:52:43 2004] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Wed Nov 03 17:52:43 2004] [notice] Digest: generating secret for digest authentication ...
[Wed Nov 03 17:52:43 2004] [notice] Digest: done
[Wed Nov 03 17:52:44 2004] [notice] Apache configured -- resuming normal operations
[Wed Nov 03 17:54:54 2004] [notice] child pid 7210 exit signal Segmentation fault (11)
[Wed Nov 03 17:55:59 2004] [notice] child pid 7207 exit signal Segmentation fault (11)
==
And so on and so on
Follow these updates from SW-SOFT
Read both before performing recompile
Recompiling PHP & IMAP
http://faq.sw-soft.com/index.php?ToDo=view...Id=173&catId=40
Recompiling Apache
http://faq.sw-soft.com/index.php?ToDo=view...Id=134&catId=29
Once you have done these 2 doing OpenSSL functions the same way.
A good resource to find the packages for your architecture is
www.rpmfind.net
The OpenSSL package to get and recompile is (as of 3.23.2005)
openssl-0.9.7a-33.12.src.rpm
Red Hat ES:
ftp://rpmfind.net/linux/redhat/updates/en...a-33.12.src.rpm
I was told by tech at EV1 that for my system it had to be openssl-0.9.7a-33.12.src.rpm or newer. For older versions of Red Hat I am not sure.
I hope this helps you guys.
If it does drop me a line at
ian@littlefroginnovations.com