ispCP - Board - Support
Awstats not found - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Awstats not found (/thread-12348.html)

Pages: 1 2


Awstats not found - Lucan - 12-05-2010 07:01 AM

Because nobody at the german corner got any idear, i'll describe my problem here.

My Awstats stopt working (I think after the upgrade to ispCP 1.0.7 - upgrade produced no error while updating)

when i try to open awstats of any domain at this server, i get the normal htaccsess form to enter my login details, after i entered the right login details, i'll get error 404 of apache.

In the combined-log of the domain i only get the following message:
Code:
62.167.237.23 - - [23/Nov/2010:18:29:19 +0100] "GET /stats/ HTTP/1.1" 401 463 "http://XXXX/client/webtools.php" "Mozilla/5.0 (Windows; U; Windows NT $

the error.log of the domain doesn't even have a entry.

mod_proxy is also enabled and 01_awstats.conf is also enabled in "sites-enabled" of apache.

Also i can run awstats by command line without any error, by using this:
Code:
/var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl



in the ispcp.conf of apache, the entry for the url looks like:
Code:
# httpd awstats support BEGIN.

ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass /stats http://localhost/stats/url.net
ProxyPassReverse /stats http://localhost/stats/url.net

<Location /stats>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.+)\?config=([^\?\&]+)(.*) $1\?config=url.net&$3 [NC,L]
</IfModule>
AuthType Basic
AuthName "Statistics for domain url.net"
AuthUserFile /var/www/virtual/url.net/.htpasswd
AuthGroupFile /var/www/virtual/url.net/.htgroup
Require group statistics
</Location>

# httpd awstats support END.

So that's also fine.


Debian Lenny with ispcp 1.0.7 stable.


Any idear?


Greetings and thank you.


RE: Awstats not found - Lucan - 12-07-2010 03:13 AM

Does nobody have any idear?


RE: Awstats not found - kilburn - 12-07-2010 09:02 PM

What do you get if you:

1. Create an ssh tunnel to your server's localhost virtualhost (ssh -L4444:localhost:80 user@server.tld)
2. Try to open any website's statistics page directly (http://localhost:4444/awstats/?config=domain.tld)


RE: Awstats not found - Lucan - 12-08-2010 06:53 AM

Quote:1. Create an ssh tunnel to your server's localhost virtualhost (ssh -L4444:localhost:80 user@server.tld)

I get:
Code:
ssh: connect to host domain.tld port 22: Connection refused
Might be because I moved SSH Port?

Quote:2. Try to open any website's statistics page directly (http://localhost:4444/awstats/?config=domain.tld)
Reseults in Connection Error.


Greetings and Thank you.


RE: Awstats not found - kilburn - 12-09-2010 08:21 AM

C'mon... if the ssh connection fails then the test will also fail for sure (there's no tunnel!!). Try again specifying your port in the ssh command.


RE: Awstats not found - Lucan - 12-10-2010 03:04 AM

Sorry didn't read the command right.

Code:
ssh -L4444:localhost:80 user@domain.net
user@domain.net's password:
Permission denied, please try again.

Password was right for 100%


RE: Awstats not found - kilburn - 12-10-2010 05:41 AM

This command is supposed to be executed from *your* machine (to connect to the server). If you're on windows, then you have to set the tunneling options in your ssh client of choice...

If you are on linux and the command is failing, then you are either not correctly specifying the ssh port (add -pXXXX), putting a wrong "user", or getting the password wrong. There's simply no other possibility.


RE: Awstats not found - Lucan - 12-10-2010 05:51 AM

(12-10-2010 05:41 AM)kilburn Wrote:  This command is supposed to be executed from *your* machine (to connect to the server). If you're on windows, then you have to set the tunneling options in your ssh client of choice...

If you are on linux and the command is failing, then you are either not correctly specifying the ssh port (add -pXXXX), putting a wrong "user", or getting the password wrong. There's simply no other possibility.

I've changed the port for this command to port 22 and allowed password authentification.
Also the Password works when i try to log in at domain.net/stats/

And of cause the command was performed at the console at the server which got this error.


But maybe i understand this wrong:
user@domain.net

User = the user which I enter when i open domain.net right?
domain.net = the domain where i try to open awstats on by entering domain.net/stats/
password = password from the user


RE: Awstats not found - kilburn - 12-10-2010 07:59 AM

No. This is your normal user to connect to the server through ssh (it may be root, although it is generally discouraged to use root directly).

(12-10-2010 05:51 AM)Lucan Wrote:  But maybe i understand this wrong:
user@domain.net

User = the user which I enter when i open domain.net right?
domain.net = the domain where i try to open awstats on by entering domain.net/stats/
password = password from the user



RE: Awstats not found - Lucan - 12-11-2010 12:54 AM

Ok, so now I know why it didn't work (the login threw ssh Wink)


If i now do it, i get the following error:

Quote:bind: Cannot assign requested address

I don't use bind and its deactivated.

But after the command i'm logged in with the user if chosen with the ssh command at the console.


Greetings