

You may need to restart HTTP server (apache) to apply changes.ĭownload Geo Lite City database wget -N -q If you want to remove the created virtual ip use the below syntax ifconfig eth0:1 xxx.xx.xxx.xxx netmask 255.255.255.0 downģ) Then Go the client machine and set the ip address like belowĮnable extension to load in php.ini: If ifconfig returns the eth0 then we need to create virtual address like eth0:1Ģ) Syntax ifconfig eth0:1 xxx.xx.xxx.xxx netmask 255.255.255.0 upįor US ifconfig eth0:1 99.99.99.09 netmask 255.255.255.0 up Open the machine where the php server is installed Setting virtual IP and test through Device My $gi = Geo::IP->open(“/home/geoip/GeoLiteCity.dat”, GEOIP_STANDARD) Userdir php5 rewrite auth_token headers deflate geoip”Ģ) vi /etc/apache2/sysconfig.d/nf LoadModule geoip_module /usr/lib64/apache2/mod_geoip.soĤ) Copy the latest “GeoLiteCity.dat ” file in /home/geoip folder Using the country, state you can pass to your database query and get the filtered content.ġ) vi /etc/sysconfig/apache2 APACHE_MODULES=”actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_userĪuthn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec If your apache installed with the geoip module, then you can get the country, state of the ip where the client is browsing the content. So either you choose another hosting (which I think it is a wise decision) or you use one of the built in scripts that every single hosting provider has for that very purpose and that, most of the time (and in every single company I hosted, it’s been like that) you will find under the cgi-bin folder.If your CMS contents are available/uploaded/created based on geo location(country, state) and needs to be populated/filtered based on country state then you have to install the apache geo ip module and php module to achieve this. You can’t have a form with no backend programming (exception made of your method is mailto, as Ryan suggested but that’s insecure to no end and you’ll be risking yourself to receive thousands and millions of spam messages). For similar cheap prices and more features, I would go for 1&1 (their windows servers do include PHP)

NET programmers is that they use objects and dlls which only exist in Windows to do their I’m surprised that GoDaddy doesn’t support PHP in their Windows servers but, if they really don’t, well… it surprise me why they’re so popular.
