标签:
$ wget http://apache.fayea.com//httpd/httpd-2.4.12.tar.gz $ tar -zxf httpd-2.4.12.tar.gz $ cd httpd-2.4.12 $ ./configure --prefix=/usr/local/apache/ $ make && make install |
$ ./configure --prefix=/usr/local/apache/ checking for chosen layout... Apache checking for working mkdir -p... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu configure: configure: Configuring Apache Portable Runtime library... configure: checking for APR... no configure: error: APR not found. Please read the documentation. |
$ wget http://archive.apache.org/dist/apr/apr-1.5.2.tar.gz $ tar -zxf apr-1.5.2.tar.gz $ cd apr-1.5.2 $ ./configure --prefix=/usr/local/apr $ make && make install |
$ wget http://archive.apache.org/dist/apr/apr-util-1.5.3.tar.gz $ tar -zxf apr-util-1.5.3.tar.gz $ cd apr-util-1.5.3 $ ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr $ make && make install |
$ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz $ tar -zxf pcre-8.37.tar.gz $ cd pcre-8.37 $ ./configure --prefix=/usr/local/pcre $ make && make install |
$ ./configure --prefix=/usr/local/apache/ \ --with-apr=/usr/local/apr \ --with-apr-util=/usr/local/apr-util \ --with-pcre=/usr/local/pcre $ make && make install |
$ wget http://apmod.googlecode.com/svn/trunk/mod_concatx/mod_concatx.c $ ln -s /usr/local/apache/bin/apxs /usr/local/bin/apxs $ apxs -c mod_concatx.c |
$ apxs -iac mod_concatx.c |
$ /usr/local/apache/bin/httpd -k start |
$ /usr/local/apache/bin/httpd -k stop |
$ /usr/local/apache/bin/httpd -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_event_module (static) authn_file_module (shared) authn_core_module (shared) authz_host_module (shared) authz_groupfile_module (shared) authz_user_module (shared) authz_core_module (shared) access_compat_module (shared) auth_basic_module (shared) reqtimeout_module (shared) filter_module (shared) mime_module (shared) log_config_module (shared) env_module (shared) headers_module (shared) setenvif_module (shared) version_module (shared) unixd_module (shared) status_module (shared) autoindex_module (shared) dir_module (shared) alias_module (shared) concatx_module (shared) |
标签:
原文地址:http://blog.csdn.net/mycwq/article/details/46426261