i've tried using httpd 2.0.58 (source) in load balancer. the installation were fine, when i start apache it start's smoothly but when i try accessing the page i got an internal error page, when i look at apache's error log it show's the following:
[Thu May 11 09:03:33 2006] [alert] --Name Trans
[Thu May 11 09:03:33 2006] [alert] apache process id = 799 ; URI = /
[Thu May 11 09:03:33 2006] [alert] Within apachelbplugin_name_trans()
[Thu May 11 09:03:33 2006] [alert] LB Configuration XML file absent or not readable
[Thu May 11 09:03:33 2006] [alert] --Name Trans
[Thu May 11 09:03:33 2006] [alert] apache process id = 802 ; URI = /favicon.ico
[Thu May 11 09:03:33 2006] [alert] Within apachelbplugin_name_trans()
[Thu May 11 09:03:33 2006] [alert] LB Configuration XML file absent or not readable
[Thu May 11 09:03:34 2006] [alert] --Name Trans
[Thu May 11 09:03:34 2006] [alert] apache process id = 801 ; URI = /
[Thu May 11 09:03:34 2006] [alert] Within apachelbplugin_name_trans()
[Thu May 11 09:03:34 2006] [alert] LB Configuration XML file absent or not readable
[Thu May 11 09:03:34 2006] [alert] --Name Trans
[Thu May 11 09:03:34 2006] [alert] apache process id = 803 ; URI = /favicon.ico
[Thu May 11 09:03:34 2006] [alert] Within apachelbplugin_name_trans()
[Thu May 11 09:03:34 2006] [alert] LB Configuration XML file absent or not readable
[Thu May 11 09:03:36 2006] [alert] --Name Trans
[Thu May 11 09:03:36 2006] [alert] apache process id = 800 ; URI = /
[Thu May 11 09:03:36 2006] [alert] Within apachelbplugin_name_trans()
[Thu May 11 09:03:36 2006] [alert] LB Configuration XML file absent or not readable
[Thu May 11 09:03:36 2006] [alert] --Name Trans
[Thu May 11 09:03:36 2006] [alert] apache process id = 799 ; URI = /favicon.ico
[Thu May 11 09:03:36 2006] [alert] Within apachelbplugin_name_trans()
[Thu May 11 09:03:36 2006] [alert] LB Configuration XML file absent or not readable
i've put the load balancer at /usr/local/apache2/conf/loadbalancer.xml
i changed the file file permission 644 to 777 but still i've got the same error.
We got it working with the apache2 that comes along with the Solaris 10 installation - version 2.0.52
- Did you try the appserver installer to install lb plugin? Did it work for you?
Please ensure that the following changes have been made (if not already done manually or by the installer):
(Replace <appserver_install> appropriately)
1. cp <appserver_install>/lib/webserver-plugin/solaris/apache2/mod_loadbalancer .so /usr/apache2/libexec/
2. mkdir /usr/apache2/modules; mkdir /usr/apache2/modules/errorpages; mkdir /usr/apache2/modules/resource.
3. cp <appserver_install>/lib/webserver-plugin/solaris/apache2/LBPlugin* /usr/apache2/modules/resource.
4. cp lib/webserver-plugin/solaris/iws/errorpages/* /usr/apache2/modules/errorpages.
5. export LD_LIBRARY_PATH=/usr/lib/mps:<appserver_install>/lib/libxerces-c.so:$LD_L IBRARY_PATH
6. Ensure that following changes have been made to the httpd-std.conf file:
- Change line "PidFile /var/run/apache2/httpd.pid" to "PidFile /var/apache2/httpd.pid"
- Uncomment line "#LockFile /var/apache2/logs/accept.lock"
- Change line "Group #-1" to "Group nogroup"
- Add following lines to the end of the file (replacing MACHINE_IP and MACHINE_NAME appropriately):
##Addition for EE lb-plugin
LoadFile /usr/lib/libCstd.so.1
LoadModule apachelbplugin_module libexec/mod_loadbalancer.so
#AddModule mod_apachelbplugin.cpp
<IfModule mod_apache2lbplugin.cpp>
config-file "/var/apache2/loadbalancer.xml"
locale en
</IfModule>
<VirtualHost MACHINE_IP>
DocumentRoot /var/apache2/htdocs
ServerName MACHINE_NAME
</VirtualHost>
##END EE LB Plugin ParametersVersion 7
7. mkdir /usr/apache2/sec_db_files; cp <appserver_install>/domains/<some_domain>/config/*.db /usr/apache2/sec_db_files;
8. Copy sun_loadbalancer_1_1.dtd to the "config-file" location mentioned in step 6. Copy it from <appserver_install>/lib/dtds/sun-loadbalancer_1_1.dtd
9. Create loadbalancer.xml at the "config-file" location mentioned in step 6.
10. Ensure that read permissions exist for loadbalancer.xml and sun_loadbalancer_1_1.dtd
Please let us know if this worked for you.
Varun.