Friday, March 8, 2013

Installing the mod_jk in centos

 

$httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: Syntax error on line 200 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_jk.so into server: /etc/httpd/modules/mod_jk.so: wrong ELF class: ELFCLASS32
                                                           [FAILED]
 

 To add the repo of mod_jk in cent os

1) cd /etc/yum.repos.d/
2) wget http://jpackage.org/jpackage.repo
3) Edit jpackage.repo and specify 'enabled=1' in the [jpackage-rhel] section
3) if you now do
# yum search mod_jk*

you'll get:

yum search mod_jk
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.hns.net.in
 * extras: mirrors.hns.net.in
 * jpackage-generic: ftp.heanet.ie
 * jpackage-rhel: ftp.heanet.ie
 * updates: mirror.nbrc.ac.in
jpackage-generic                                                                                                                                  | 2.3 kB     00:00   
jpackage-rhel                                                                                                                                     | 2.3 kB     00:00   
jpackage-rhel/primary_db                                                                                                                          | 4.7 kB     00:00   
============================================================================ Matched: mod_jk ============================================================================
mod_jk-ap20.i386 : Tomcat mod_jk connector for Apache 2.0.x
mod_jk-debuginfo.i386 : Debug information for package mod_jk
mod_jk-manual.i386 : Tomcat mod_jk connector manual
mod_jk-tools.i386 : Analysis and report tools for mod_jk

1 comment:

  1. Here is what I get

    # yum search mod_jk*
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: mirrors.prometeus.net
    * extras: mirrors.prometeus.net
    * jpackage-generic: sunsite.informatik.rwth-aachen.de
    * jpackage-generic-nonfree: sunsite.informatik.rwth-aachen.de
    * jpackage-generic-nonfree-updates: sunsite.informatik.rwth-aachen.de
    * jpackage-generic-updates: sunsite.informatik.rwth-aachen.de
    * jpackage-rhel: sunsite.informatik.rwth-aachen.de
    * jpackage-rhel-updates: sunsite.informatik.rwth-aachen.de
    * updates: mirrors.prometeus.net
    Warning: No matches found for: mod_jk*
    No Matches found

    ReplyDelete