Re: awstats, how to see in a browser?
On Wednesday 17 February 2021 03:03:05 Thomas Pircher wrote:
> Gene Heskett wrote:
> >apt/synaptic installed so I assume you mean /var/www etc
>
> Hi Gene,
>
> actually I meant the path part in the URL, so if you reach your web
> server on localhost on the HTTP protocol, then the URL would be
> http://localhost/cgi-bin/awstats.pl
>
> >ene@coyote:/var/www/cgi-bin$ ls -R
>
Connection refused, awstats.pl isn't there.
> It looks like you have a lot of CGI scripts installed, so the only way
> to find out how to reach the awstats page is to read the Apache
> configuration.
>
> First, check if you have /etc/apache2/conf-available/awstats.conf (as
> described in /usr/share/doc/awstats/README.Debian.gz).
> Further, is that config enabled? Does the symbolic link
> /etc/apache2/conf-enabled/awstats.conf exist?
>
No.
> What is the content of that file?
>
> >ss -nlpt
> >A new to me command but:
>
> Hmm, sorry, I should have said that you need to run this command as
> root, otherwise you won't see all services, and it won't show you the
> process name. `ss` is a replacement for the `netstat` command.
>
> Thomas
root@coyote:~$ ss -nlpt
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 5 0.0.0.0:631 0.0.0.0:* users:(("cupsd",pid=12811,fd=9))
LISTEN 0 128 0.0.0.0:443 0.0.0.0:* users:(("apache2",pid=1145,fd=4),
("apache2",pid=1144,fd=4),("apache2",pid=1119,fd=4))
LISTEN 0 32 0.0.0.0:7741 0.0.0.0:* users:(("lisa",pid=770,fd=4))
LISTEN 0 64 0.0.0.0:10080 0.0.0.0:* users:(("xinetd",pid=936,fd=5))
LISTEN 0 128 0.0.0.0:6309 0.0.0.0:* users:(("apache2",pid=1145,fd=3),
("apache2",pid=1144,fd=3),("apache2",pid=1119,fd=3))
LISTEN 0 16 127.0.0.1:3493 0.0.0.0:* users:(("upsd",pid=988,fd=4))
LISTEN 0 128 0.0.0.0:3142 0.0.0.0:* users:(("apt-cacher-ng",pid=864,fd=5))
LISTEN 0 64 0.0.0.0:6566 0.0.0.0:* users:(("xinetd",pid=936,fd=9))
LISTEN 0 5 0.0.0.0:19150 0.0.0.0:* users:(("gkrellmd",pid=896,fd=3))
LISTEN 0 128 127.0.0.1:783 0.0.0.0:* users:(("spamd child",pid=15804,fd=5),("spamd
child",pid=15803,fd=5),("spamd",pid=15802,fd=5))
LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=899,fd=3))
LISTEN 0 5 [::]:631 [::]:* users:(("cupsd",pid=12811,fd=10))
LISTEN 0 128 [::]:3142 [::]:* users:(("apt-cacher-ng",pid=864,fd=6))
LISTEN 0 5 [::]:19150 [::]:* users:(("gkrellmd",pid=896,fd=4))
Hummmm,
oot@coyote:conf-available$ locate awstats.pl
/usr/lib/cgi-bin/awstats.pl
root@coyote:conf-available$
odd place. Soft link it to the above /var/www/cgi-bin?
and:
root@coyote:conf-available$ ls -1 `locate awstats.conf`
/etc/awstats/awstats.conf
/etc/awstats/awstats.conf.local
/var/lib/dpkg/info/awstats.conffiles
So obviously apache2 has zero knowledge of awstats, yet awstats was
installed here from the stretch repo's?????
Same story it appears for awffull whose output I like slightly better. Zero
connection to apache2.
In wheezy, all this Just Worked. Running slowly out of hair, but it went grey 20 years back.
anyway. :)
Thanks Thomas.
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
Reply to: