Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 10th March 2006, 13:24
Zoon Zoon is offline
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default Howto: Make Webalizer show full QueryString!!

Have been looking for this little tip for so long, and luckily I happened across a posting by the author of Webalizer on the Yahoo Group

Here's what you need to do to make the changes to your webalizer system.

1. Download the source code for Webalizer from the website http://www.webalizer.org/download.html

2. You'll need to install GD, PNG, and zlib if they aren't already on your server. They are linked from the download page above on the Webalizer website or they are on Yum if you are using RedHat (gd, gd-devel, libpng-devel, not sure what zlib is as it was already on).

3. Untar the .tar file to somewhere safe in your home directory.

4. Issue the command "vi webalizer.c" or use your favourite editor.

5. If using vi, type "/isurlchar" to search for it.

6. Edit the following line
return (strchr(":/\\.,' *-+_@~()[]",ch)!=NULL); /* and a few special ones */
Include in the statement some or all of the additional characters depending how detailed you want to go: "?&"
return (strchr(":/\\.,' *-+_@~()[]?&",ch)!=NULL); /* and a few special ones */
7. If using vi, hit escape and then type : x to write out the file and exit.

8. Type "cd .."

9. Type "cp -R webalizerfoldername webalizer-compile"

10. Type "cd webalizer-compile"

11. Type "./configure"

12. If there are no errors thrown up, type "make"

13. Find the existing webalizer executable - for me I think it was in /usr/bin.

14. Make a backup of the webalizer executable using "cp /path/to/webalizer /path/to/webalizer.bkp"

15. Type "cp /path/to/webalizer-compile/webalizer /path/to.webalizer"

16. You can manually force an update of your stats by issuing the following command but its probably best to leave it to run automatically at 0040 as per the crontab task.
"/root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null"

17. Have fun with your new output

Please be aware this will show full referrer querystring as well as full URL querystring on your website, so expect to see lots of hits for all options on your dynamic website under the URL section.
Reply With Quote
Sponsored Links
Old 5th November 2007, 03:12
NetherBen NetherBen is offline
Junior Member
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

If you want to show the ENTIRE Query string on referrers you will want to change the above line to: (the previous author excluded = signs)

return (strchr(":/\\.,' *-+_@~()[]?&=",ch)!=NULL);
Another trick is if you are on debian you can do:

apt-get source webalizer
cd [dirname]
vi webalizer.c
[make the changes]
dpkg -i ../[packagename].deb
It seemed like he had a lot of steps on the above fix.

Anyway.. that's my 2 cents.

http://www.hab.la - Chat with visitors to your website using your existing IM client
http://www.nethernet.com - Ruby, Python, Rails, Web development
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC3 Perfect Installation Make Errors solderboy HOWTO-Related Questions 3 2nd October 2005 17:55

All times are GMT +2. The time now is 18:48.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.