[atomic-testing] awstats 6.9

Atomic repository announcements, new release notifications and other news regarding the atomic yum repository.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

[atomic-testing] awstats 6.9

Unread post by scott »

Changes since 6.7
***** 6.9 *****

New features/improvements:
- With postfix that support DSN (Delivery Status Notifications) we exclude
some lines to avoid counting mails twice in maillogconvert.pl script.
- Logresolvemerge.pl support FreeRADIUS logs or anything else using (the
fixed length!) ctime format timestamp.
- Add option stoponfirsteof in logresolvemerge tool.
- Add patch to support host_proxy tag in LogFormat (for Apache LogFormat
containing %{X-Forwarded-For}i)
- Renamed Add to favourites on "Hit on favicon".
- Increase robots, search engines database (Added Google Chrome browser,
better Vista, WII, detection, ...)
- Update languages files.
- Added a lot of patch from sourceforge.

Fixes:
- Fixed broken maxmind citi, org and isp plugins.
- Remove   in name html tag to have HtmlHeadSection first.
- Fix: [ 2001151 ] Security fix.
- Fix: [ 2038681 ] missing <br _/_> in plugins/geoip_org_maxmind.pm
- Fix: [ 1921942 ] html footer is missing from the allextraN report.
- Fix: [ 1943466 ] error geoip_city_maxmind Can't locate object method "record_
- Fix: [ 1808277 ] Incorrect function call in geoip_isp_maxmind.pm
- Fix: Full list of extrasections was not ordered correctly
- A lot of other fixes.
- Added missing icons

Other/Documentation:
- None


***** 6.8 *****

New features/improvements:
- Added OnlyUsers option.
- Can track RPC request.
- HTMLHeadSection can accept \n in string.
- Add option MetaRobot.
- Increase seriously bot detection.
- Better detection of windows OS.
- Add condition HOSTINLOG in extra sections.
- Can show a full list for extrasection.

Fixes:
- Fixed pb in xml output for history files.
- Fixed a bug in awstats_configure.pl script.

Other/Documentation:
- Updated some language files.
- Updated documentation.
- Updated browsers database and added following patches:
775988 The lastest: minor Chinese search engine patch
1735647 Chinese search engines for awstats 6.6
1735646 robots patch: feedsky, contentmatch crawler, twiceler, yodao
1735639 Browser patch for Lilina/potu reader
1735637 Chinese translation file for awstats 6.6
1533028 WordToCleanSearchUrl for baidu.com
1384243 minor Chinese spider and search engine patch
1569151 TOP 8 Chinese local search engines
745359 Chinese(Simp) update: 6.5 awstats-cn.txt
1569201 top Chinese browser and robot update: TT is not a robot
1569229 Simplified Chinese language file update
1569208 Browser update on potu rss reader and lilina rss reader
- Added a more complete xslt example.
- Remove some deprecated code.
- Update status of GeoIP City plugin database. A free version is
now available like GeoIP Country database.


To upgrade:

yum --enablerepo=atomic-testing upgrade awstats
diego
Forum Regular
Forum Regular
Posts: 111
Joined: Tue Aug 05, 2008 5:01 pm

Re: [atomic-testing] awstats 6.9

Unread post by diego »

I have upgraded, i am running plesk 8.6.0 under CentOS 5.2 asl 2.0.7

The path to the awstats_buildstaticpages.pl seems to be wrong:

Code: Select all

sh: /var/www/cgi-bin/awstats/awstats.pl: No such file or directory
sh: /usr/share/awstats/awstats_buildstaticpages.pl: No such file or directory
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=xxxx.com.mx-http -dir=/var/www/vhosts/xxxx.com.mx/statistics/webstat/current
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: [atomic-testing] awstats 6.9

Unread post by scott »

Thanks for the report! Is awstats_buildstaticpages.pl part of the awstats package or is that part of a plesk package?
diego
Forum Regular
Forum Regular
Posts: 111
Joined: Tue Aug 05, 2008 5:01 pm

Re: [atomic-testing] awstats 6.9

Unread post by diego »

Its part of awstats, but i think that the plesk team customized the location of the files. Now the file awstats_buildstaticpages.pl its on /usr/share/awstats/tools but the building script was looking for it on /usr/share/awstats/

Now also the graphic images on the reports are missing.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: [atomic-testing] awstats 6.9

Unread post by breun »

There are more posts about AWstats breaking when upgrading AWstats on the Plesk forums, because the Plesk awstats rpm uses different file locations.
Lemonbit Internet Dedicated Server Management
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: [atomic-testing] awstats 6.9

Unread post by scott »

Do you have a list? It could be changed from "awstats" to "psa-awstats", and use a different layout.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: [atomic-testing] awstats 6.9

Unread post by breun »

No, I don't have a list, I'm not using AWstats myself. But you could compare the filelist of Plesk's rpm with yours and check if the scripts and icons and things like that are in the same locations.
Lemonbit Internet Dedicated Server Management
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: [atomic-testing] awstats 6.9

Unread post by scott »

Yeah I dont use it either. One thing Ive seen them do sometimes (and I admit to doing this as well, albeit *rarely*) are rpms that will manipulate the layout of other packages after the fact ( mv, cp, ln, etc).
diego
Forum Regular
Forum Regular
Posts: 111
Joined: Tue Aug 05, 2008 5:01 pm

Re: [atomic-testing] awstats 6.9

Unread post by diego »

What do you sugest uninstall and try to install the old version?
dgrafenhofer
New Forum User
New Forum User
Posts: 4
Joined: Thu Mar 12, 2009 5:48 am

Re: [atomic-testing] awstats 6.9

Unread post by dgrafenhofer »

For me this awstats package works without problems for a few days on CentOS 4 and Plesk 8.6.

Thanks for updating the package! I really appreciate a lot your effort!
diego
Forum Regular
Forum Regular
Posts: 111
Joined: Tue Aug 05, 2008 5:01 pm

Re: [atomic-testing] awstats 6.9

Unread post by diego »

dgrafenhofer: can you send us a list of the location of the awstats_buildstaticpages.pl ?
dgrafenhofer
New Forum User
New Forum User
Posts: 4
Joined: Thu Mar 12, 2009 5:48 am

Re: [atomic-testing] awstats 6.9

Unread post by dgrafenhofer »

On CentOS 4.7:
/usr/share/awstats/tools/awstats_buildstaticpages.pl
diego
Forum Regular
Forum Regular
Posts: 111
Joined: Tue Aug 05, 2008 5:01 pm

Re: [atomic-testing] awstats 6.9

Unread post by diego »

How can i rollback to the last working version of awstats, i cant find how to make the 6.9 version work on my plesk 8.6 CentOS 5.2 X_64 to work.
lavinya
New Forum User
New Forum User
Posts: 1
Joined: Thu Apr 23, 2009 2:06 am

Re: [atomic-testing] awstats 6.9

Unread post by lavinya »

Hello thanks for files.
I have this same problem. My system: Centos 5.3, Plesk 9.0.1
diego wrote:

Code: Select all

sh: /var/www/cgi-bin/awstats/awstats.pl: No such file or directory
sh: /usr/share/awstats/awstats_buildstaticpages.pl: No such file or directory
statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=xxxx.com.mx-http -dir=/var/www/vhosts/xxxx.com.mx/statistics/webstat/current
Please help me..
hostingguy
Forum Regular
Forum Regular
Posts: 661
Joined: Mon Oct 29, 2007 6:51 pm

Re: [atomic-testing] awstats 6.9

Unread post by hostingguy »

Here is what I did to fix the problem (had the same issue)

in /etc/psa/psa.conf

change

Code: Select all

# grep AWSTATS /etc/psa/psa.conf

AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /var/www/cgi-bin/awstats
AWSTATS_TOOLS_D /usr/share/awstats
AWSTATS_DOC_D /var/www/html/awstats
TO

Code: Select all

# grep AWSTATS /etc/psa/psa.conf

AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /usr/share/awstats/wwwroot/cgi-bin
AWSTATS_TOOLS_D /usr/share/awstats/tools
AWSTATS_DOC_D /usr/share/awstats/wwwroot

You can do that by running these lines:

Code: Select all

perl -pi -e "s#AWSTATS_BIN_D /var/www/cgi-bin/awstats#AWSTATS_BIN_D /usr/share/awstats/wwwroot/cgi-bin#gi" /etc/psa/psa.conf
perl -pi -e "s#AWSTATS_TOOLS_D /usr/share/awstats#AWSTATS_TOOLS_D /usr/share/awstats/tools#gi" /etc/psa/psa.conf
perl -pi -e "s#AWSTATS_DOC_D /var/www/html/awstats#AWSTATS_DOC_D /usr/share/awstats/wwwroot#gi" /etc/psa/psa.conf

Then run this to calculate stats for a single domain - change my-domain.com to something valid on your server.

Code: Select all

DOMAINNAME="my-domain.com"
/usr/local/psa/admin/sbin/webstatmng --set-configs --stat-prog=awstats --domain-name=$DOMAINNAME
/usr/local/psa/admin/bin/websrvmng -u --vhost-name=$DOMAINNAME
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=$DOMAINNAME
Watch for any errors, if they appear, correct them as necessary :)

[assuming no errors above, continue]

Go View the domains httpd.conf file and see if it set the awstats-icon directory properly.

Code: Select all

grep awstats-icon /var/www/vhosts/$DOMAINNAME/conf/httpd.include
        Alias  /awstats-icon /usr/share/awstats/wwwroot/icon
^^ That means it did, so then change it everywhere

Code: Select all

/usr/local/psa/admin/bin/websrvmng -va

Once the "/usr/local/psa/admin/sbin/statistics" completes with out errors, go view your site and make sure the data is displaying. if you are having issues with the images/icons appearing and see things like this in your domain or server error_log

Code: Select all

[Tue Jun 02 12:08:49 2009] [error] [client xx.xx.xx.xx] client denied by server configuration: /usr/share/awstats/wwwroot/icon/mime/php.png, referer: http://my-domain.com/plesk-stat/webstat/current/index.html
Then you may need to do this step as well

Get rid of the conf.d/awstats.conf file and restart httpd

Code: Select all

mkdir -p /root/originals/etc/httpd/conf.d
mv /etc/httpd/conf.d/awstats.conf /root/originals/etc/httpd/conf.d/
service httpd restart
Now run stats for all users on the server

Code: Select all

/usr/local/psa/admin/sbin/statistics --calculate-all
You should now be done (hopefully) :p
Last edited by hostingguy on Wed Jun 03, 2009 12:24 pm, edited 1 time in total.
Post Reply