badly caught in installing mod_geoip on apache 2.2.9 redhat

Discussion in 'Server Operation' started by haroon, Feb 20, 2009.

  1. haroon

    haroon New Member

    hi

    for the last one week i am stuck in installing mod_geoip on apache 2.2.9 with redhat. Maxmind people say that they provide help to only paid customers. Can anybody help me here please, i have done everything only in the last step to change httpd.conf and restarting apache , i am having troubles.

    I have done the following,

    I followed this tutorial http://forums.theplanet.com/lofiversion/index.php/t20482.html

    everything works fine but when I restart apache it gives me following error

    # service httpd restart
    httpd: Syntax error on line 43 of /usr/local/apache/conf/httpd.conf: API module structure 'geoip_module' in file /usr/lib/httpd/modules/mod_geoip.so is garbled - expected signature 41503232 but saw 41503230 - perhaps this is not an Apache module DSO, or was compiled for a different Apache version?

    i even tried this for starting step

    ./configure --with-apxs=/usr/local/apache/bin/apxs

    and then used apxs but it still failed and gave the same error.

    thanks in advance
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    updatedb
    locate apxs
    ?
     
  3. haroon

    haroon New Member

    root@vps [~]# locate apxs
    /home/cpeasyapache/src/httpd-2.2.9/support/apxs
    /home/cpeasyapache/src/httpd-2.2.9/support/apxs.in
    /home/cpeasyapache/src/httpd-2.2.9/docs/man/apxs.8
    /home/cpeasyapache/src/httpd-2.2.9/docs/manual/programs/apxs.html.en
    /home/cpeasyapache/src/httpd-2.2.9/docs/manual/programs/apxs.html
    /home/cpeasyapache/src/httpd-2.2.9/docs/manual/programs/apxs.html.ko.euc-kr
    /home/cpeasyapache/src/modsecurity-apache_2.5.7/apache2/build/apxs-wrapper.in
    /home/cpeasyapache/src/modsecurity-apache_2.5.7/apache2/build/apxs-wrapper
    /usr/sbin/apxs
    /usr/local/apache.backup/man/man8/apxs.8
    /usr/local/apache.backup/bin/apxs
    /usr/local/apache.backup/htdocs/ea3_apache_build_htdocs/manual/programs/apxs.html
    /usr/local/apache.backup/htdocs/manual/programs/apxs.html
    /usr/local/apache/man/man8/apxs.8
    /usr/local/apache/manual/programs/apxs.html.en
    /usr/local/apache/manual/programs/apxs.html
    /usr/local/apache/manual/programs/apxs.html.ko.euc-kr
    /usr/local/apache/bin/apxs
    /usr/local/apache/htdocs/manual/programs/apxs.html
    /usr/local/apache.ea3-buildok-confgen-failed/man/man8/apxs.8
    /usr/local/apache.ea3-buildok-confgen-failed/manual/programs/apxs.html.en
    /usr/local/apache.ea3-buildok-confgen-failed/manual/programs/apxs.html
    /usr/local/apache.ea3-buildok-confgen-failed/manual/programs/apxs.html.ko.euc-kr
    /usr/local/apache.ea3-buildok-confgen-failed/bin/apxs
    /usr/local/apache.ea3-buildok-confgen-failed/htdocs/manual/programs/apxs.html
    /usr/local/apache.backup_archive/20081015.1224076490/man/man8/apxs.8
    /usr/local/apache.backup_archive/20081015.1224076490/manual/programs/apxs.html.en
    /usr/local/apache.backup_archive/20081015.1224076490/manual/programs/apxs.html
    /usr/local/apache.backup_archive/20081015.1224076490/manual/programs/apxs.html.ko.euc-kr
    /usr/local/apache.backup_archive/20081015.1224076490/bin/apxs
    /usr/local/apache.backup_archive/20081015.1224076490/htdocs/manual/programs/apxs.html
    /usr/local/apache.backup_archive/20081015.1224093553/man/man8/apxs.8
    /usr/local/apache.backup_archive/20081015.1224093553/bin/apxs
    /usr/local/apache.backup_archive/20081015.1224093553/htdocs/manual/programs/apxs.html
    /usr/local/apache.backup_archive/20081014.1223949311/man/man8/apxs.8
    /usr/local/apache.backup_archive/20081014.1223949311/bin/apxs
    /usr/local/apache.backup_archive/20081014.1223949311/htdocs/manual/programs/apxs.html
    /usr/local/apache.backup_archive/20081015.1224097032/man/man8/apxs.8
    /usr/local/apache.backup_archive/20081015.1224097032/manual/programs/apxs.html.en
    /usr/local/apache.backup_archive/20081015.1224097032/manual/programs/apxs.html
    /usr/local/apache.backup_archive/20081015.1224097032/manual/programs/apxs.html.ko.euc-kr
    /usr/local/apache.backup_archive/20081015.1224097032/bin/apxs
    /usr/local/apache.backup_archive/20081015.1224097032/htdocs/manual/programs/apxs.html
    /usr/local/apache.backup_archive/20081016.1224137531/man/man8/apxs.8
    /usr/local/apache.backup_archive/20081016.1224137531/bin/apxs
    /usr/local/apache.backup_archive/20081016.1224137531/htdocs/ea3_apache_build_htdocs/manual/programs/apxs.html
    /usr/local/apache.backup_archive/20081016.1224137531/htdocs/manual/programs/apxs.html
    /usr/local/apache.backup_archive/20081015.1224088268/man/man8/apxs.8
    /usr/local/apache.backup_archive/20081015.1224088268/manual/programs/apxs.html.en
    /usr/local/apache.backup_archive/20081015.1224088268/manual/programs/apxs.html
    /usr/local/apache.backup_archive/20081015.1224088268/manual/programs/apxs.html.ko.euc-kr
    /usr/local/apache.backup_archive/20081015.1224088268/bin/apxs
    /usr/local/apache.backup_archive/20081015.1224088268/htdocs/manual/programs/apxs.html
    /usr/local/apache.backup_archive/20081015.1224085727/man/man8/apxs.8
    /usr/local/apache.backup_archive/20081015.1224085727/manual/programs/apxs.html.en
    /usr/local/apache.backup_archive/20081015.1224085727/manual/programs/apxs.html
    /usr/local/apache.backup_archive/20081015.1224085727/manual/programs/apxs.html.ko.euc-kr
    /usr/local/apache.backup_archive/20081015.1224085727/bin/apxs
    /usr/local/apache.backup_archive/20081015.1224085727/htdocs/manual/programs/apxs.html
    /usr/local/apache.backup_archive/20081015.1224092722/man/man8/apxs.8
    /usr/local/apache.backup_archive/20081015.1224092722/manual/programs/apxs.html.en
    /usr/local/apache.backup_archive/20081015.1224092722/manual/programs/apxs.html
    /usr/local/apache.backup_archive/20081015.1224092722/manual/programs/apxs.html.ko.euc-kr
    /usr/local/apache.backup_archive/20081015.1224092722/bin/apxs
    /usr/local/apache.backup_archive/20081015.1224092722/htdocs/manual/programs/apxs.html
    /usr/share/man/man8/apxs.8.gz
     
  4. falko

    falko Super Moderator Howtoforge Staff

    There areseveral apxs files. How di you install Apache? Did you use the packages from your distribution, or did you compile it yourself?
     
  5. haroon

    haroon New Member

    it is a VPS with cpanel/WHM on the backend. Apache etc were all installed already when I get it from the hosting company, I just upgraded Apache to 2.2.9, when it was the latest version, by using cpanel install script which can be run from WHM GUI. There is an option to recompile Apache with PHP etc in WHM, I used that to upgrade Apache because it is a VPS and hosting company support told me if I do it manually, on the next cpanel auto upgrading my changes will be overwritten and some of the parts of cpanel / services might leave working after manual upgrade. Therefore I used WHM Apache upgrade script.
     
  6. falko

    falko Super Moderator Howtoforge Staff

    I'd try ./configure --with-apxs with the various apxs versions you got installed until you find the one that works with your Apache.
     

Share This Page