Results 1 to 4 of 4

Thread: compile apache

  1. #1
    Join Date
    Apr 2005
    Posts
    694

    compile apache

    Hi all,

    Was wondering if there's anyway we can compile apache from scratch with 1000 maxclient instead of the 250 default. Please help.

  2. #2
    Join Date
    Mar 2001
    Posts
    1,434
    If using prefork:
    edit server/mpm/prefork/prefork.c and search for the line:
    #define DEFAULT_SERVER_LIMIT 256

    Change 256 to 1000 and compile.

    - John C.

  3. #3
    Join Date
    Apr 2005
    Posts
    694
    this is a brand new centos 5.1 server, not sure if it's using prefork.c or what not? how do you find out? Does this apply to apache 2.x?

  4. #4
    Join Date
    Apr 2005
    Posts
    694
    Just found out from httpd -V that I am indeed running Prefork, question now is how and where do I go to edit that file?

    Code:
    [email protected] san]# httpd -V
    Server version: Apache/2.2.3
    Server built:   Jan 15 2008 20:33:41
    Server's Module Magic Number: 20051115:3
    Server loaded:  APR 1.2.7, APR-Util 1.2.7
    Compiled using: APR 1.2.7, APR-Util 1.2.7
    Architecture:   64-bit
    Server MPM:     Prefork
      threaded:     no
        forked:     yes (variable process count)
    Server compiled with....
     -D APACHE_MPM_DIR="server/mpm/prefork"
     -D APR_HAS_SENDFILE
     -D APR_HAS_MMAP
     -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
     -D APR_USE_SYSVSEM_SERIALIZE
     -D APR_USE_PTHREAD_SERIALIZE
     -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
     -D APR_HAS_OTHER_CHILD
     -D AP_HAVE_RELIABLE_PIPED_LOGS
     -D DYNAMIC_MODULE_LIMIT=128
     -D HTTPD_ROOT="/etc/httpd"
     -D SUEXEC_BIN="/usr/sbin/suexec"
     -D DEFAULT_PIDLOG="logs/httpd.pid"
     -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
     -D DEFAULT_LOCKFILE="logs/accept.lock"
     -D DEFAULT_ERRORLOG="logs/error_log"
     -D AP_TYPES_CONFIG_FILE="conf/mime.types"
     -D SERVER_CONFIG_FILE="conf/httpd.conf"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •