Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th February 2008, 00:00
bg011ca bg011ca is offline
Junior Member
 
Join Date: Feb 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default mod_geoip, help needed for setup

Hello there.

I have version 2.2.18 on CentOS 4.5.

For last couple of days I am trying to figure out how to use GeoIP for redirection and I am stumbled upon installation of mod_geoip for Apache server

I was following instructions from here:
http://www.maxmind.com/app/mod_geoip and here:
http://forums.theplanet.com/lofivers...hp/t20482.html

I can not pass line of
"apxs -cia -I/usr/local/include -L/usr/local/lib -lGeoIP mod_geoip.c"

as "bash: apxs: command not found"

Only apxs I could locate in "/root/ispconfig/httpd/bin" folder.

Help is very much appreciated.

Please and Thank You.
Reply With Quote
Sponsored Links
  #2  
Old 15th February 2008, 09:36
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

Include "/root/ispconfig/httpd/bin" in your PATH
Code:
PATH=$PATH:/root/ispconfig/httpd/bin
export $PATH
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 15th February 2008, 14:22
bg011ca bg011ca is offline
Junior Member
 
Join Date: Feb 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default I tried...

... to include whoule path when running command,
"/root/ispconfig/httpd/bin/apxs -cia -I/usr..."
with no success.

I have tried to run originaly suggested line from the "/root/ispconfig/httpd/bin" folder as well, no success.

I do not know if problem might be due to the Apache 1.* usage for ISPConfig and Apache 2.* and mod for that Apache version that I am trying to set up.

Does "apxs" command care for version of Apache that it is supposed to be used for?


Additional info for my setup is that before loading ISPconfig, I have run perfect setup for CentOS 4.5.

All worked fine using howtoforge guidelines.
Reply With Quote
  #4  
Old 15th February 2008, 18:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,726 Times in 2,565 Posts
Default

Please install the httpd-devel package:
Code:
yum install httpd-devel
and then search for apxs:
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
  #5  
Old 16th February 2008, 20:15
bg011ca bg011ca is offline
Junior Member
 
Join Date: Feb 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default That worked.

Falko, thanks.

You are the boss.

Now, mod_geoip is loaded on server level.
Users can use it via local .htaccess with and, at the same time, decide which database to use via:

GeoIPEnable On
GeoIPDBFile /path/to/GeoIP.dat

directives.

Or that can be configured on the server level as well.

Thanks, again.
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
Raid1 advice needed. ubutux Installation/Configuration 6 17th November 2007 02:54
Domain dns help needed acaradic Server Operation 2 28th February 2007 19:19
NEEDED : Ubuntu 6.10 (Edgy Eft) ISP Server Setup with DTC (v 0.24.2.0) tyranno Suggest HOWTO 3 31st October 2006 23:58
Help....package missing sbovisjb1 Installation/Configuration 3 31st March 2006 11:14
CentOS 4.2 - Swap Needed or Not? d3m0nic Installation/Configuration 2 1st February 2006 16:52


All times are GMT +2. The time now is 04:30.


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