Configure apache integration tomcat on another server of the company today. Because apache is compiled and installed, many modules are not opened. During integration, the following error is reported.
The solution is as follows:
1. Check whether there is a proxy module in httpd. conf. If not, compile and add it by yourself.
Go to the proxy directory in the modules directory under the apache source code directory.
| The code is as follows: |
Copy code |
Cd/root/install/httpd-2.2.22/modules/proxy/
|
This is my Directory. You can tidy up the source code directory and enter the proxy directory to execute the following two commands:
| The code is as follows: |
Copy code |
/Usr/local/apache/bin/apxs-c-I-a mod_proxy_ajp.c ajp *. c mod_proxy_balancer.c mod_proxy_connect.c mod_proxy.c mod_proxy_http.c proxy_util.c /Usr/local/apache/bin/apxs-c-I-a mod_proxy_connect.lo mod_proxy_balancer.lo mod_proxy_ajp.lo mod_proxy.lo proxy_util.lo Note: |
-C: execute the compilation operation.
-I. Install one or more dynamic shared objects to the modules Directory of the server.
-A automatically adds a LoadModule path httpd. conf file to activate this module. If this line exists, it is enabled.
-A is similar to-a, but the added LoadModule row has A prefix (#)
-E needs to be edited. It can be used with the-a and-A Options. Similar to the-I operation, the httpd. conf file is modified, but this module is not installed.
2. Restart apache
If no error is reported, it indicates that the above error has been resolved. If the problem persists:
| The code is as follows: |
Copy code |
AH00526: syntaxes error on line 574 of/usr/local/apache/conf/httpd. conf: BalancerMember Can't find 'byrequests' lb method |
Make sure that the following two options are available in httpd. conf:
| The code is as follows: |
Copy code |
LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so LoadModule slotmem_shm_module modules/mod_slotmem_shm.so |
Then restart apache.