Current time: 12-24-2024, 05:35 AM Hello There, Guest! (LoginRegister)


Post Reply 
Awstats not found
Author Message
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #1
Awstats not found
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.
12-05-2010 07:01 AM
Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #2
RE: Awstats not found
Does nobody have any idear?
12-07-2010 03:13 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #3
RE: Awstats not found
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)
12-07-2010 09:02 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #4
RE: Awstats not found
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.
12-08-2010 06:53 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #5
RE: Awstats not found
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.
12-09-2010 08:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #6
RE: Awstats not found
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%
12-10-2010 03:04 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #7
RE: Awstats not found
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.
(This post was last modified: 12-10-2010 05:43 AM by kilburn.)
12-10-2010 05:41 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #8
RE: Awstats not found
(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
(This post was last modified: 12-10-2010 05:56 AM by Lucan.)
12-10-2010 05:51 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #9
RE: Awstats not found
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
12-10-2010 07:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #10
RE: Awstats not found
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
12-11-2010 12:54 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)