Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th February 2009, 17:42
haroon haroon is offline
Junior Member
 
Join Date: Jan 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy badly caught in installing mod_geoip on apache 2.2.9 redhat

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/lofivers...hp/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
Reply With Quote
Sponsored Links
  #2  
Old 21st February 2009, 19:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

What's the output of
Code:
updatedb
locate apxs
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 21st February 2009, 20:01
haroon haroon is offline
Junior Member
 
Join Date: Jan 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #4  
Old 22nd February 2009, 21:15
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

There areseveral apxs files. How di you install Apache? Did you use the packages from your distribution, or did you compile it yourself?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 22nd February 2009, 22:30
haroon haroon is offline
Junior Member
 
Join Date: Jan 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #6  
Old 23rd February 2009, 19:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
 
Default

I'd try ./configure --with-apxs with the various apxs versions you got installed until you find the one that works with your Apache.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache down every week (caught SIGTERM) jarkand Server Operation 6 15th July 2008 02:59
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 21:58
Problems with installation on openSUSE 10.2 douglaslopezt Installation/Configuration 3 24th August 2007 23:04
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 01:45


All times are GMT +2. The time now is 06:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.