I suppose you have already installed awstats statistic, GeoIP plagin etc.. change default script which update database file about countries (GeoIP.dat): # vim /usr/local/bin/geoipupdate.sh #!/bin/sh cd /tmp fetch http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz fetch http://www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz fetch http://www.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz gunzip GeoIP.dat.gz gunzip GeoLiteCity.dat.gz gunzip GeoIPASNum.dat.gz mv -f GeoIP.dat /usr/local/share/GeoIP/ mv -f GeoLiteCity.dat /usr/local/share/GeoIP/ mv -f GeoIPASNum.dat /usr/local/share/GeoIP/ I mark string wich [...]
Posted on Июнь 15th, 2010 by admin
Filed under: Software | Comments Off
The problem: Error: Plugin load for plugin ‘geoip’ failed with return code: Error: Can’t locate Geo/IP.pm in @INC (@INC contains: /usr/local/lib/perl5/5.10.1/BSDPAN /usr/local/lib/perl5/site_perl/5.10.1/mach /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach /usr/local/lib/perl5/5.10.1 . /usr/local/www/awstats/cgi-bin/lib /usr/local/www/awstats/cgi-bin/plugins) at (eval 4) line 1. Can’t locate Geo/IP/PurePerl.pm in @INC (@INC contains: /usr/local/lib/perl5/5.10.1/BSDPAN /usr/local/lib/perl5/site_perl/5.10.1/mach /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach /usr/local/lib/perl5/5.10.1 . /usr/local/www/awstats/cgi-bin/lib /usr/local/www/awstats/cgi-bin/plugins) at (eval 5) line 1. Error: Need [...]
Posted on Июнь 15th, 2010 by admin
Filed under: Solutions | 1 Comment »
Для того, чтобы удалить пустые строки в vim используйте: :g/^\s*$/d
Posted on Июнь 7th, 2010 by admin
Filed under: Tips | 1 Comment »
Ncftp is good ftp client for freebsd – install ncftp freebsd: #cd /usr/ports/ftp/ncftp3 && make install clean #rehash create ftp config file: #touch /home/config/ftp.conf – add information about ftp-server to /home/config/ftp.conf: host ftp.howtobsd.com user ftpuser pass ftpfassword and finally wonderful command: ncftpput -f /home/anton/ftp.conf /backups /backup/forupload/* /home/anton/ftp.conf- is ftp-connection information /backups – folder on ftp-server [...]
Posted on Июнь 1st, 2010 by admin
Filed under: Software | Comments Off
Fsbackup is a good and simple freebsd backup software for backuping your information. When you finish read this article you will be able to backup on freebsd your data automatically on the local directory or remote ftp server. 1.First of all we are going to install port fsbackup: #cd /usr/ports/sysutils/fsbackup && make install clean this [...]
Posted on Июнь 1st, 2010 by admin
Filed under: Software | Comments Off
If you have a some problem: Invalid command ‘SSLEngine’, perhaps misspelled or defined by a module not included in the server configuration check the string in httpd.conf LoadModule ssl_module libexec/apache22/mod_ssl.so – it’s shouldn’t be comment After update openssl and apache it turns out that apache can’t start: Syntax error on line 68 of /usr/local/etc/apache22/httpd.conf: Cannot [...]
Posted on Июнь 1st, 2010 by admin
Filed under: Solutions | 1 Comment »