Forum Moderators: DixonJones

Message Too Old, No Replies

Install Awstats via ws_ftp? No access to apache settings.

How to install awstats without having access to apache settings.

         

purefusion

1:37 pm on Jul 25, 2005 (gmt 0)

10+ Year Member



I have no way to access apache, as far as I know, and my webhost does not have awstats available, but I tried to simply transfer the awstats files to the host and nothing works. Basically, does anyone know of a simple how-to that shows someone how to install awstats via ws_ftp or anything similar?

Thanks,
Scott

jetboy

2:14 pm on Jul 25, 2005 (gmt 0)

10+ Year Member



No idea about about a tutorial, although the Sourceforge AWStats forums would be a good place to ask. You don't need any sort of access to Apache to run AWStats though. What you do need is access to your logs.

After uploading awstats.pl, your conf file and the lang, lib and plugins directories to your cgi-bin, and the classes and icon (and js) directories to your web root, the things you have to worry about are:

. Is your conf file named correctly?

. Do you have the correct path to your log file? - on a *nix box likely to be something like:

/usr/local/psa/home/vhosts/mydomain.co.uk/logs/mylog

. Has awstats.pl got the correct permissions? - CHMODding to 744 should do the trick. You'll get a 500 error if you've got this wrong

The only other thing that might help is changing the first line on awstats.pl from:

#!/usr/bin/perl

to

#!/usr/bin/perl -w

but it shouldn't be necessary.

purefusion

5:28 pm on Jul 25, 2005 (gmt 0)

10+ Year Member



the log file is in the "log" directory at root. I emailed the host support to see if they can get me the actual path to the log file. I did the chmod, so my next question is how do I run awstats? via the cgi-bin directory? do i just run the .pl file?

jetboy

9:13 pm on Jul 25, 2005 (gmt 0)

10+ Year Member



Usually in a web browser:

http:// www.yourdomain/cgi-bin/awstats.pl

or something similar. It can also be run from the *nix command line (you'll need shell access) or via a cron.

purefusion

1:49 pm on Jul 26, 2005 (gmt 0)

10+ Year Member



woohoo, I got it to work... except that there are only a bunch of zeros. It says never updated, perhaps I should update it. Do you know how I would update it without having access to apache again? The instructions included only show how to install as if you were the host.

Thanks again for all your help!

purefusion

2:28 pm on Jul 26, 2005 (gmt 0)

10+ Year Member



Woohoo, I got it to work :)