Thursday, February 28, 2008

Webalizer not showing country names (unknown/unresolved)

Hi , Solution :

Step 1) Edit the /etc/resolv.conf file Check if the IP addresses for nameservers are as follows (provided the server is on RackShack): nameserver 127.0.0.1 nameserver 207.218.192.38 nameserver 207.218.192.39 If not please change it. Webalizer checks resolve.conf file before generating the webstats. Step 2) Go to the path /usr/local/cpanel/src/3rdparty/gpl/webalizer-2.01-10 Then run the following command ./configure --enable-dns --with-dblib=/lib Step 3) Then run /scripts/runweblogs to see if the changes are updated. You need to make one change to your httpd.conf file in the /etc/httpd/conf directory. (It is advised that you make a backup of the file BEFORE making any changes.) Edit the file, look for HostnameLookups and change the value to On. Save the file and restart the web server i.e. /etc/rc.d/init.d/httpd restart

No comments: