Jump to content

Recommended Posts

hey guys im after a but of help regarding installing the geo ip module...now im sorry of its in the wrong forum but i couldnt see where to put it but hopefully someone can help.

 

now i read a few tutorials copied and pasted a few lines into putty and my server has a 500 internal server error on it...so ive really messed it up.

 

i logged into putty

 

and used the following commands

mkdir /usr/share/GeoIP
cd /usr/share/GeoIP

wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gzip -d GeoIP.dat.gz 

wget http://www.sohailriaz.com/downloads/custom_opt_mod-mod_geoip.tar.gz
tar -zxvf custom_opt_mod-mod_geoip.tar.gz

service httpd restart

.htaccess
-------
LoadModule geoip_module /usr/local/apache/modules/mod_geoip.so
GeoIPEnable On
GeoIPDBFile /usr/share/GeoIP/GeoIP.dat MemoryCache 

any advise on how i can repair my server and what it is i have done wrong please?

 

thank you guys

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/295267-geo-ip-mod/
Share on other sites

ok well the log said:

 

[Mon Mar 16 13:00:05.984024 2015] [core:alert] [pid 32717:tid 140241604171520] [client 213.205.253.98:50627] /var/www/vhosts/bisi.bid/bisi.bid/.htaccess: LoadModule not allowed here

 

 

so i removed these lines from the .htaccess

LoadModule geoip_module /usr/local/apache/modules/mod_geoip.so
GeoIPEnable On
GeoIPDBFile /usr/share/GeoIP/GeoIP.dat MemoryCache 

these are the modules on the server

 

 

  core.c
  mod_so.c
  http_core.c
 

 

so im guessing i have installed the geoip module properly...what do you suggest i do please to get it installed?

 

thank you

Link to comment
https://forums.phpfreaks.com/topic/295267-geo-ip-mod/#findComment-1508230
Share on other sites

im able to put apache directives when using using my plesk contol panel

 

so i added this line

LoadModule geoip_module /usr/local/apache/modules/mod_geoip.so

but im getting a error:

Syntax error on line 1 of /var/www/vhosts/system/bisi.bid/conf/vhost.conf: 
Cannot load /usr/local/apache/modules/mod_geoip.so into server: /usr/local/apache/modules/mod_geoip.so: cannot open shared object file: No such file or directory 

but i've installed geo_ip module using putty...what do you suggest i do now?

Link to comment
https://forums.phpfreaks.com/topic/295267-geo-ip-mod/#findComment-1508250
Share on other sites

ok well i think im getting somewhere now...although im trying to include a .conf file to the servers .conf file

 

im using:

Include /var/www/vhosts/system/bisi.bid/conf/vhost.conf

but returns error

Syntax error on line 1 of /var/www/vhosts/system/bisi.bid/conf/vhost.conf:

now if i try to alter direcory to customer config then it says directory/file not found so i know what i'm trying to include is right but just getting errors.

 

my server uses plesk 12 and i've done what it says in the manual.

 

 

any ideas what the problem could be?

 

thank you

Link to comment
https://forums.phpfreaks.com/topic/295267-geo-ip-mod/#findComment-1508359
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.