Article ID: 967, created on Oct 6, 2008, last review on Jun 17, 2016

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 10.4 for Linux/Unix

Additional Information

Since the release of Plesk 8.2.0, up to 900 domains can be hosted on the OS vendor Apache build without system package recompilation, described in this article, if the Piped Logs feature is enabled on the Plesk server.


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 of fs.file-max can equal up to 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 the __FD_SETSIZE value in the /usr/include/bits/typesizes.h and /usr/include/nptl/bits/typesizes.h files (if present). It should look like this:

#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 apache2_*.deb apache2*-common*.deb apache2-mpm-prefork*.deb apache2-utils*.deb apache2.*bin*.deb
# cp /opt/psa/suexec/psa-suexec /usr/lib/apache2/suexec
# /etc/init.d/apache2 restart

Continue depending on your operating system:

  • For Debian 4-6:

    # apt-src --build install libc-client2007e
    # dpkg -i libc-client*-dev*.deb libc-client*.deb mlock*.deb
    # useradd –m php-build
    # echo “php-build ALL=(ALL) ALL” >> /etc/sudoers
    # su – php-build
    # apt-src --build install php5
    # exit
    # cd ~php-build
    # dpkg -i php5*.deb libapache2-mod-php5_*.deb

    Note: Creating a "php-build" user is necessary since PHP 5.3.3 on Debian 6.0 is trying to start its own MySQL instance to test MySQL functions after the compilation is complete. However, MySQL will not start under root, thus failing the package build process.

  • For Ubuntu 10.04:

    #apt-src --build install libc-client2007e
    #dpkg -i libc-client2007e-dev*.deb libc-client2007e*.deb mlock*.deb
    #apt-src --build install php5
    #dpkg -i `ls *deb|grep php5 | grep -v apache-mod`

In the following article, you may find a way to prevent your rebuilt packages from overwriting during the system upgrade:

Search Words

unable to open logs

56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 aea4cd7bfd353ad7a1341a257ad4724a 0a53c5a9ca65a74d37ef5c5eaeb55d7f 01bc4c8cf5b7f01f815a7ada004154a2 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 e8756e9388aeca36710ac39e739b2b37 dd0611b6086474193d9bf78e2b293040

Email subscription for changes to this article
Save as PDF