When attempting to start apache, I received some errors indicating that I hav reached the maximum number of open files.
[error] System: Too many open files (errno: 24)
This is caused by apache and RedHat setting their open file limits too low. Be forwarned, an older system could see a serious degredation in performance by setting these limits too high. To correct this you will need to do the following:
/etc/sysctl.conf. Add a new line with:
fs.file-max = 8192 (The default is 1024) The change to the
/etc/sysctl.conf will make the setting persistant over reboots.
To immediately increase the number of open files, use
ulimit -n 8192.
To view all the current
ulimit‘s. you my run: