du solltest evt. das ulimit usw. in der /etc/init.d/apache2 hinterlegen.
Das mit den Filedescriptoren ist so ein typisches Apache Problem
Add the following lines to /etc/sysctl.conf:
fs.file-max = 65536
Run the following shell command:
/sbin/sysctl -w fs.file-max=65536
Note that the value fs.file-max can be equal up to 220=1048576).
Add the following line to beginning of /etc/init.d/apache2 and /usr/sbin/apache2ctl:
ulimit -n `cat /proc/sys/fs/file-max`
Change __FD_SETSIZE value in /usr/include/bits/typesizes.h and /usr/include/nptl/bits/typesizes.h files. It should be like:
#define __FD_SETSIZE 65536
Download and rebuild packages:
# apt-get install apt-src
# apt-src --build install openssl
# dpkg -i libssl*.deb openssl*.deb
# apt-src --build install apache2
# dpkg -i libapr*.deb apache2_*.deb apache2-common*.deb apache2-mpm-worker*.deb apache2-utils*.deb
# /etc/init.d/apache2 restart
# apt-src --build install libc-client2002edebian
# dpkg -i libc-client-dev_2002edebian1-*.deb libc-client2002edebian*.deb mlock*.deb
# apt-src --build install php4
# dpkg -i `ls *deb|grep php4|grep -v apache-mod`
How to prevent your rebuilt packages from overwriting during the system upgrade you can find in the article:
http://www.debian.org/doc/manuals/apt-ho...html#s-pin