Page 1 of 1

awstats setup

Posted: Mon Aug 18, 2008 7:15 am
by shiznatix
Hello all. I am trying to get awstats setup on our companies live server but am having difficulties. I set it up on our development server painlessly, no problems at all. Now I try to keep the 2 servers as simmilar as possible but the live server is kinda screwy as the host, even though its a dedicated server, forces some httpd configuration files on us. Basically if the server restarts ever then it will overwrite changes I have made to a few sections of the httpd.conf file. Strange, I know but there is nothing I can do about it.

So that is the only place I can think of having this problem. I have done everything exactally the same on the live server as I did on the testing server for the awstats install. On the testing server it runs just fine. On the live server I get sent to my sites 404 page which makes me think that the lines in the httpd.conf file are being disregarded for whatever reason. The lines that the setup added were these:
#
# Directives to allow use of AWStats as a CGI
#
Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"

#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory "/usr/local/awstats/wwwroot">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
it doesn't seam like the ScriptAlias is working, just no go at all. I don't really know much about the httpd.conf file so I don't know what I should be looking for to make this work just peachy so if someone could give me some sugesstions as to why maybe the ScriptAlias is not taking, I would be very appreciative.

Re: awstats setup

Posted: Mon Aug 18, 2008 9:04 am
by Geteburg
Check if mod_alias (httpd.conf) is enabled on LIVE server. Can't think of anything else if you did the same set up as on test server.

Re: awstats setup

Posted: Mon Aug 18, 2008 9:19 am
by shiznatix
the only thing I have for mod_alias is this ifmod:
<IfModule mod_alias.c>
Alias /manual/ /usr/local/apache/htdocs/manual/
Alias /icons/ /usr/local/apache/icons/

ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"

<Directory "/usr/local/apache/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all

</Directory>

<Directory "/usr/local/apache/htdocs/manual">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all

</Directory>

<Directory "/usr/local/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all

</Directory>

</IfModule>

Re: awstats setup

Posted: Mon Aug 18, 2008 11:11 am
by Geteburg
Check if its installed by running:

Code: Select all

apache2ctl -l
If its not installed, you will have to add it, if it is installed then i have no idea what the problem is. :)

Re: awstats setup

Posted: Tue Aug 19, 2008 2:07 am
by shiznatix
For some reason I don't have apache2ctl installed and it is not found in my yum repos. I don't know how to use yum very well, I don't like it at all and have very little expierence in it. Is there any other way to find out if it is installed?