1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

HOWTO: Debian FD_SETSIZE Problem

Discussion in 'Plesk for Linux - 8.x and Older' started by Peter2, Oct 19, 2005.

  1. Peter2

    Peter2 New Pleskian

    22
    73%
    Joined:
    May 9, 2005
    Messages:
    21
    Likes Received:
    0
    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
     
  2. Peter2

    Peter2 New Pleskian

    22
    73%
    Joined:
    May 9, 2005
    Messages:
    21
    Likes Received:
    0
    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
     
  3. iDamir

    iDamir Guest

    0
     
    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
     
  4. iDamir

    iDamir Guest

    0
     
    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
     
  5. Peter2

    Peter2 New Pleskian

    22
    73%
    Joined:
    May 9, 2005
    Messages:
    21
    Likes Received:
    0
    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.
     
Loading...