Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Fresh AWStats install seemingly lacking CSS

Reply to Post Add a New Topic
UserPost

1:12 pm
October 9, 2009


Saber

Guest

Hello,

I was 'tasked' with installing AWStats onto our dedicated server since my editor was clueless on how to do it. Well, it seems like I'm as lost as he is when it comes to this.

The first time I used the Simplified AWStats Installation guide I ended up with a blank browser window every time I tried to access /cgi-bin/awstats.pl?config=mysetup. My second time with your guide ended up with some experimenting, so I'm now confronted with this: http://www.ufogamers.co.uk/aws…..awstats.pl.

What I did was place all of the /wwwroot content from the latest AWStats stable release .zip into an /awstats directory. That's what I experimented with, nothing more, nothing less.

My custom config file is probably at fault, so here are its contents:

Include “awstats.model.conf”

LogFile=”/etc/httpd.conf”

SiteDomain=”www.ufogamers.co.uk”

HostAliases=”localhost 127.0.0.1 http://www.ufogamers.co.uk“

DirData=”/user/htdocs/awstats/”

AllowToUpdateStatsFromBrowser=1

The contents of 'awstats.model.conf' remain unchanged.

If anyone can help me out here, that would be great. I'll supply any information needed.

Thanks,

Domagoj

4:04 pm
October 9, 2009


Saber

Guest

Hey again,

You know what? Scratch that last post, probably in its entirety. I've just realised that the problem might lie in my Apache server config file(s). Since I just noticed that awstats.pl is being opened as a text file, I came to the conclusion that the server either isn't recognising or executing Perl scripts.

If that's the case, could you still lend a hand and point me in the right direction?

Thanks,

Domagoj

9:32 am
October 10, 2009


Jean-Luc

Admin

posts 1125

Hi,

Some hosts let you run Perl scripts everywhere, others require that they are installed in a specific directory that they have already created in your hosting space. When it exists, this directory is usually called cgi-bin . If this cgi-bin  directory already exists, install AWStats there, because you are probably not allowed to create your own cgi-bin  directory.

Do not forget to change the permissions of awstats.pl  to 755.

9:53 am
October 10, 2009


Saber

Guest

Hi Jean-Luc,

Thanks for the helpful tips! I did (another) fresh install, this time the proper way with the use of shell commands and following the AWStats documentation, and I managed to do something. I don't know if one can call this progress, but now by visiting the stats page I get greeted by a blank screen. I just finished processing logs and building up a statistics database, thinking that the AWStats page will be populated with data once I finish. Obviously, that didn't happen.

Again, any help on the issue is welcome!

Best regards,

Domagoj

10:09 am
October 10, 2009


Jean-Luc

Admin

posts 1125

What are the permissions of your awstats.pl  ?

Your awstats.pl  is not in a cgi-bin  directory. Are you sure that you are allowed to run Perl scripts in any directory ?

10:24 am
October 10, 2009


Saber

Guest

My editor bought a dedicated server due to a mishap regarding our previous host, so he wanted to be able to keep everything under his 'watchful gaze.' The thing is, he doesn't know a lot about it, so neither do I. I have no idea if I can run Perl scripts in any directory, but I'm able to configure our server to do so if that is possible.

The permissions of my awstats.pl file are 755.

10:31 am
October 10, 2009


Saber

Guest

Quick update:

Yes, you are right, awstats.pl is outside of the cgi-bin directory It is currently located in  /user/htdocs/awstats/cgi-bin instead of just /user/htdodcs/cgi-bin. Would just moving the directory to the right position fix the problem or am I facing a far more sinister and complex solution?

10:43 am
October 10, 2009


Jean-Luc

Admin

posts 1125

Try to run a small Perl script first. hello.pl  :

#!/usr/bin/perl

# hello.pl

print "Content-type: text/html\\n\\n";
print "\\nHello, all!";

exit;

10:49 am
October 10, 2009


Saber

Guest

I wrote and ran the script inside of /user/htdocs/awstats/cgi-bin through the terminal and received the two text outputs without any errors. I assume this means that I can run Perl scripts inside of that directory?

Also, I didn't know that Perl is so similar to C. 😛

11:01 am
October 10, 2009


Jean-Luc

Admin

posts 1125

Try to run it from the browser. If it runs, then you will know that Apache can run your Perl scripts in that directory.

11:15 am
October 10, 2009


Saber

Guest

When I run it through a browser I see it as source code only. I guess that's my problem, then.

EDIT:

Forgot to mention that I had to move it a level above the /awstats/ folder because my browser kept saying that file could not be found.

12:05 pm
October 10, 2009


Jean-Luc

Admin

posts 1125

From the browser, you should see:

Hello, all!

If this does not work, this is a Perl/Apache issue rather than an AWStats issue.

12:22 pm
October 10, 2009


Saber

Guest

Thanks for the help, Jean-Luc! You helped clear a lot of confusion 🙂 I'll try and sort the Perl/Apache issue, if Google gives me useful information.

Reply to Post

Reply to Topic:
Fresh AWStats install seemingly lacking CSS

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
10 + 7
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
9 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710

Membership:

There are 257 Members
There have been 304 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)