Search

AWStats with 1and1.com

Heres another quickie on setting up AWStats with 1and1.com. There were a few tricky parts that I’ll go over. If you have any other questions, or if you need help with another host, lets discuss it in the comments.

I think the trickiest part of the AWStats setup was getting the path to my logs right.

The easiest way to get the path to your site is to use use the ssh account 1and1 provides you with. Log in to your account at admin.1and1.com -> go to web space & access -> SSH. You can get your host name, user name, and password there.

If you are using windows, Im pretty sure you have to download a program to use SSH. I recommend PUTTY.

Once you ssh in, you should already be at your root directory.

Just type: pwd.

You should see somthng like this: /kunden/homepages/##/f#########/htdocs/

This is the path to your root directory.

You will need to use the path in the DirData and Logfile data.

DirData=”/kunden/homepages/##/##########/htdocs/awstats/cgi-bin/data”

LogFile=”/kunden/homepages/##/##########/htdocs/logs/access.log.%WY-168.%DW-24″

Another area that may be tricky is the setup for the LogFormat and LogSeparator:

LogFormat=�%host %other %other %time1 %methodurl %code %bytesd %virtualname %refererquot %uaquot %other�

LogSeparator=” “

Now to set up a cron job that will process you logfiles with awstats.pl every night just before midnight.

1. Log in to your ssh account
2. type: crontab -e
3. Press i to toggle input mode.
4. Enter this complete line:

59 23 * * * perl $HOME/statsaw/cgi-bin/awstats.pl -config=seo -update

5. then type: :wq
thats (colon w q – colon then w means write – q means quit)

Any other questions. Feel free to ask in the comments

If you enjoyed this post, make sure you subscribe to my RSS feed!



2 Responses to “AWStats with 1and1.com”

  1. Chris Says:

    Hi

    Re: 1&1. I have set-up a website to expose 1&1′s ‘free’ .info offer scam, and to raise awareness of other faults with the company.

    Please visit: http://www.thebleedingobvious.com to see what is happening.

    Regards, Chris H.



  2. B Jones Says:

    Great info on your site. I hadn’t heard of the .EU tld. Sounds like a good one. £99 though, thats a lot to tack on. Good luck with that.



Leave a Comment