Apache compiler parameters Detailed (Linux under the manual code compiled apache) __linux

Source: Internet
Author: User
Tags ldap sendfile apache log

Turn from: http://hi.baidu.com/pibuchou/blog/item/5cd41315d7a99215962b4334.html


Common compile parameter list

/configure//Configure the Source code tree
–PREFIX=/USR/LOCAL/APACHE2//System-independent file top-level installation directory prefix, also on Apache's installation directory.
–ENABLE-MODULE=SO//Open so module, so module is used to lift the DSO support of the Apache core module
–enable-deflate=shared//Support for Web page compression
–enable-expires=shared//support for HTTP control
–enable-rewrite=shared//Support URL rewriting
–enable-cache//Support caching
–enable-file-cache//Support file caching
–enable-mem-cache//Support memory cache
–enable-disk-cache//support for disk caching
–enable-static-support//support for static connections (default for dynamic connections)
–ENABLE-STATIC-HTPASSWD//using static connections to compile htpasswd– manage user files for Basic authentication
–enable-static-htdigest//using static connections to compile htdigest– manage user files for Digest authentication
–enable-static-rotatelogs/////Use static connection to compile rotatelogs– to scroll the pipeline log program for the Apache log
–enable-static-logresolve//using static connections to compile logresolve– the IP address in the Apache log is the host name
–ENABLE-STATIC-HTDBM//using static connection to compile htdbm– operation DBM Password database
–enable-static-ab//using static connections to compile Ab–apache HTTP server performance test Tool
–enable-static-checkgid//compile checkgid with static connection
–disable-cgid//prohibit CGI scripts from executing with an external CGI daemon
–DISABLE-CGI//Prohibit compiling CGI version of PHP
–disable-userdir//Prevents users from providing pages from their home directory
–with-mpm=worker//Let Apache run as a worker
–enable-authn-dbm=shared//To operate the dynamic database. Rewrite when needed.

以下是分门别类的更多参数注解,与上面的会有重复 options for the Configure script for Apr: Optional features --enable-experimental-libtool enable the test-enabled custom Libtool--disable-libtool-lock unlock (which may cause parallel compilation crashes)--enable-debug enable debug compilation. For use by developers only. --enable-maintainer-mode turns on debugging and compile-time warnings for use by developers only. --enable-profile Turn on compiling profiling (GCC)--enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all] Turn on the Pools debug--enable-malloc-debug open the Malloc_debug--disable-lfs on the BeOS platform to disable large file support on the 32-bit platform (large file support)-- Enable-nonportable-atomics If you only want to run Apache on more than 486 CPUs, use this option to enable more efficient atomic operations based on mutex execution. --enable-threads enables thread support, which must be turned on on a thread-type MPM--disable-threads disables thread support and can be turned off to reduce system overhead if you do not use a threaded MPM. --DISABLE-DSO Disable DSO support--enable-other-child enable reliable child process support--disable-ipv6 disable IPV6 support Optional Extra Packages --WITH-GNU-LD Specifies that the C compiler uses the GNU LD--with-pic to use only Pic/non-pic objects [default to both use]--with-tags[=tags] contains additional configuration--with-installbuild DIR=DIR Specifies the location of the APR compiled file (the default is: ' ${datadir}/build ')--without-libtool prohibit using Libtool connection library file--with-efence[=dir] Specify electric Fence installation directory--with-sendfile forced to use Sendfile (translator: linux2.4/2.6 kernel support)--with-egd[=dir] Use EDG compatible sockets--with-devrandom[= DEV] Specifies options for random devices [default:/dev/random] for apr-util Configure scripts: Optional Extra Packages --with-apr=path Specifies the installation directory for APR (–prefix option value or Apr-config path)--with-ldap-include=path LDAP include file directory (with trailing slash)--with-ldap-lib =path LDAP library file path--with-ldap=library use of the LDAP library--WITH-DBM=DBM Select the dbm type to use DBM={SDBM,GDBM,NDBM,DB,DB1,DB185,DB2,DB3,DB4, DB41,DB42,DB43,DB44}--with-gdbm=path The location of the specified GDBM--with-ndbm=path the location of the specified ndbm--with-berkeley-db=path specify the location of Berkeley DB- WITH-PGSQL=PATH Specifies the location of the PostgreSQL--with-mysql=path see the contents of the Install.mysql file--with-sqlite3=path Specify the location of the Sqlite3- With-sqlite2=path Specify SQLITE2 location--with-expat=path specify expat location or ' builtin '--with-iconv=path iconv installation directory


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.