Destramic Posted March 15, 2015 Share Posted March 15, 2015 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 Quote Link to comment Share on other sites More sharing options...
requinix Posted March 16, 2015 Share Posted March 16, 2015 Have you looked at the server error logs yet? Quote Link to comment Share on other sites More sharing options...
Destramic Posted March 16, 2015 Author Share Posted March 16, 2015 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 Quote Link to comment Share on other sites More sharing options...
requinix Posted March 16, 2015 Share Posted March 16, 2015 You can still use those lines but you can't put them in the .htaccess. Try the virtualhost config instead; if you have multiple sites and more than one needs it, in the global config. Quote Link to comment Share on other sites More sharing options...
Destramic Posted March 16, 2015 Author Share Posted March 16, 2015 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? Quote Link to comment Share on other sites More sharing options...
requinix Posted March 16, 2015 Share Posted March 16, 2015 Make sure you put the file in the right place and that Apache can read it. Also make sure you've installed any dependencies there may be. Quote Link to comment Share on other sites More sharing options...
Destramic Posted March 17, 2015 Author Share Posted March 17, 2015 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.