This document is Appache upgraded from version 2.0.65 to version 2.4.29
Installation requires a dependent package installation, please check the appropriate dependent package installation,
If the system has properly installed the corresponding dependent packages, can be skipped, the version upgrade described in this article will not overwrite the previous Apache server
Yum Install Expat-devel
Yum Install compat-libstdc++-33
1. installation package Preparation
Expat-2.1.0.tar.gz
Apr-1.6.3.tar.gz
apr-util-1.5.4
Pcre-8.41.tar.gz
2. Installing expat-2.1.0
Cd/tmp
TAR-ZXVF expat-2.1.0.tar.gz
CD expat-2.1.0
./configure
Make && make install
3. Installing apr-1.6.3.tar.gz
Cd/tmp
TAR-ZXVF apr-1.6.3.tar.gz
cd?apr-1.6.3
./configure--PREFIX=/USR/LOCAL/APR
Make && make install
4. Installing apr-util-1.5.4
Cd/tmp
tar-jxvf?apr-util-1.5.4.tar.bz2
CD apr-util-1.5.4
./configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR
Make && make install
5. Install pcre-8.41?
Cd/tmp
TAR-ZXVF pcre-8.41.tar.gz
CD pcre-8.41
./configure--prefix=/usr/local/pcre
Make && make install
6. Installing httpd-2.4.29
Cd/tmp
TAR-ZXVF httpd-2.4.29.tar.gz
cp-rf?apr-1.6.3 HTTPD-2.4.29/SRCLIB/APR
cp-rf?apr-util-1.5.4 Httpd-2.4.29/srclib/apr-util
CD srclib/apr;
Make
Cd..
CD srclib/apr-util;
Make
CD httpd-2.4.29
./configure--prefix=/usr/local/apache--enable-mods-shared=all--enable-deflate--enable-speling--enable-cache-- Enable-file-cache--enable-disk-cache--enable-mem-cache--enable-rewrite--enable-so--with-apr=/usr/local/apr/-- with-apr-util=/usr/local/apr-util/--with-pcre=/usr/local/pcre/--WITH-INCLUDED-APR
Make && make install
7. Upload the WebLogic plugin and use the WebLogic plugin to do the forwarding (http://www.oracle.com/technetwork/middleware/webtier/downloads/ index.html Download Oracle WebLogic Server Proxy Plugins 12.2.1.3 and unzip)
Upload the bin, Jlib, and Lib in the wlsplugin12.2.1.3.0-apache2.2-apache2.4-linux_x86_64-12.2.1.3.0/usr/local/apache/ In the Weblogic-plugin directory
Set environment variable Ld_library_path
Export ld_library_path=/usr/local/apache/weblogic-plugin/lib/$LD _library_path
echo "ld_library_path=/usr/local/apache/weblogic-plugin/lib/$LD _library_path" >>/etc/profile
or (to create a new file libc.conf in the/ETC/LD.SO.CONF.D directory, the/usr/local/apache/weblogic-plugin/lib/usr/local/ The Lib directory is added to the libc.conf file, and then the Ldconfig command is executed)
8. Modify the configuration file
A. Copy the LoadModule section from the configuration file in version 2.4 to the old version of the configuration file (repeat partial deletion)
LoadModule weblogic_module/usr/local/apache/weblogic-plugin/lib/mod_wl_24.so
LoadModule Rewrite_module modules/mod_rewrite.so
LoadModule Headers_module modules/mod_headers.so
LoadModule Authn_file_module modules/mod_authn_file.so
LoadModule Authn_core_module modules/mod_authn_core.so
LoadModule Authz_host_module modules/mod_authz_host.so
LoadModule Authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule Authz_user_module modules/mod_authz_user.so
LoadModule Authz_core_module modules/mod_authz_core.so
LoadModule Access_compat_module modules/mod_access_compat.so
LoadModule Auth_basic_module modules/mod_auth_basic.so
LoadModule Reqtimeout_module modules/mod_reqtimeout.so
LoadModule Filter_module modules/mod_filter.so
LoadModule Mime_module modules/mod_mime.so
LoadModule Log_config_module modules/mod_log_config.so
LoadModule Env_module modules/mod_env.so
LoadModule Setenvif_module modules/mod_setenvif.so
LoadModule Version_module modules/mod_version.so
LoadModule Unixd_module modules/mod_unixd.so
LoadModule Status_module modules/mod_status.so
LoadModule Autoindex_module modules/mod_autoindex.so
LoadModule Dir_module modules/mod_dir.so
LoadModule Alias_module modules/mod_alias.so
LoadModule Userdir_module modules/mod_userdir.so
LoadModule Negotiation_module modules/mod_negotiation.so
B. Change options-indexes followsymlinks to Options Indexes followsymlinks
C. Comment out the DefaultType text/plain (#DefaultType text/plain) because Apache2.4 is not using the DefaultType parameter.
D.maxclients renamed Maxrequestworkers, describing exactly what it was. For asynchronous MPMs, just like an event, the maximum number of clients is not equal to the number of threads working. The old name is still supported.
E. Change "Order Deny,allow deny from" to "Require all denied
Change "Order Allow,deny allow from all" to require all granted
Change "Order Deny,allow Deny from all to example.org" to require host example.org
Appache upgrade from version 2.0.65 to version 2.4.29