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:
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?
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.
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.
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.
Yes, you are right, awstats.plis 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?
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. :P