• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

HOWTO: Debian FD_SETSIZE Problem

Peter2

New Pleskian
Hi,
this thread maybe help other to fix there problems.

According to:
http://kb.swsoft.com/article_41_260_en.html
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=330105
and this in apache error-log:
[notice] child pid 29022 exit signal Segmentation fault (11)

i could fix it the Apacheproblem on my Debian-servers.

Maybe these steps help others to fix the problem on their Debian boxes too?:

Make all changes in /etc/sysctl.conf how is it decribed on (http://kb.swsoft.com/article_41_260_en.html) and then:

Code:
# download and build .debs
apt-get install libtool libpcre3-dev libldap2-dev libc6-dev libc6
apt-get source apache2
cd apache2-2.0.54
dpkg-buildpackage -uc -us
cd ../

# test
dpkg -i --simulate apache2-common_2.0.54-5_i386.deb apache2-mpm-prefork_2.0.54-5_i386.deb  apache2-utils_2.0.54-5_i386.deb apache2_2.0.54-5_i386.deb libapr0_2.0.54-5_i386.deb

# install
dpkg -i apache2-common_2.0.54-5_i386.deb apache2-mpm-prefork_2.0.54-5_i386.deb  apache2-utils_2.0.54-5_i386.deb apache2_2.0.54-5_i386.deb libapr0_2.0.54-5_i386.deb

# Install suexec and restart Apache
cp /opt/psa/suexec/psa-suexec2 /usr/lib/apache2/suexec2
/etc/init.d/apache2 restart

Do not install any -dev, gcc or g++ on servers!

Feedback welcome.

Gruss,
PP
 
Hi,
okay you must also recompile php: ;)
Code:
# download and build .debs
apt-get source libapache2-mod-php4
cd php4-4.3.10
#(can happen that you must install for this additional packages!)
dpkg-buildpackage -uc -us

cd ../
dpkg -i --simulate php4-curl_4.3.10-15_i386.deb php4-mcal_4.3.10-15_i386.deb php4-recode_4.3.10-15_i386.deb libapache2-mod-php4_4.3.10-15_i386.deb php4-domxml_4.3.10-15_i386.deb php4-mhash_4.3.10-15_i386.deb php4-snmp_4.3.10-15_i386.deb php4-cgi_4.3.10-15_i386.deb php4-gd_4.3.10-15_i386.deb php4-mysql_4.3.10-15_i386.deb php4-sybase_4.3.10-15_i386.deb php4-cli_4.3.10-15_i386.deb php4-imap_4.3.10-15_i386.deb php4-odbc_4.3.10-15_i386.deb php4-xslt_4.3.10-15_i386.deb php4-common_4.3.10-15_i386.deb php4-ldap_4.3.10-15_i386.deb php4-pear_4.3.10-15_all.deb php4_4.3.10-15_all.deb

dpkg -i php4-curl_4.3.10-15_i386.deb php4-mcal_4.3.10-15_i386.deb php4-recode_4.3.10-15_i386.deb libapache2-mod-php4_4.3.10-15_i386.deb php4-domxml_4.3.10-15_i386.deb php4-mhash_4.3.10-15_i386.deb php4-snmp_4.3.10-15_i386.deb php4-cgi_4.3.10-15_i386.deb php4-gd_4.3.10-15_i386.deb php4-mysql_4.3.10-15_i386.deb php4-sybase_4.3.10-15_i386.deb php4-cli_4.3.10-15_i386.deb php4-imap_4.3.10-15_i386.deb php4-odbc_4.3.10-15_i386.deb php4-xslt_4.3.10-15_i386.deb php4-common_4.3.10-15_i386.deb php4-ldap_4.3.10-15_i386.deb php4-pear_4.3.10-15_all.deb php4_4.3.10-15_all.deb
 
It's better to get required packages for building by
Code:
apt-get build-dep package_for_building
for example
Code:
apt-get build-dep apache2
 
Also I recommend increasing revision number and making some comments about changing by
Code:
dch -i
for assurance that the package won't be reinstalled from Debian repository if somebody makes
Code:
apt-get update
apt-get upgrade
 
Originally posted by Peter2
Code:
apt-get source libapache2-mod-php4
...
cd php4-4.3.10
....
dpkg-buildpackage -uc -us

cd ../

To made the same faster and easier with less commands:
Code:
apt-get install apt-src
apt-src --build install apache2 php4 php4-mcrypt php4-rrdtool php4-imagick php4-imap php4-pgsql php4-ps php4-xslt
apt-src should also download all additional needed .debs.
 
Back
Top