#1  
Old 15th April 2012, 19:52
veneficus veneficus is offline
Junior Member
 
Join Date: Mar 2012
Posts: 16
Thanks: 1
Thanked 1 Time in 1 Post
Default awstats.con stops apache

Hi to all, after tring to enebla awstats, the statistics come for a while, the no mre pages were reacheble, i try to restart apache, and comment line per line di awstats.con line that gives problem, i had to comment all to stop error then i had other error form the site awstats .conf file so i had to remove all of them and enable weblizer ( that i don't like at all ) i am using ccentos X86X64 release 5.8 here's the errors ihad thanks to all for any reply.

Code:
Avvio di httpd: [Sun Apr 15 16:06:40 2012] [warn] The Alias directive in /etc/httpd/conf.d/awstats.conf at line 1 will probably never match because it overlaps an earlier Alia
[Sun Apr 15 16:06:40 2012] [warn] The ScriptAlias directive in /etc/httpd/conf.d/awstats.conf at line 3 will probably never match because it overlaps an earlier ScriptAlias.
Syntax error on line 2 of /etc/httpd/conf.d/awstats.sra.it.conf:
Invalid command 'LogFile="/var/log/ispconfig/httpd/sra.it/yesterday-access.log"', perhaps misspelled or defined by a module not included in the server configuration
                                                           [FALLITO]
[root@ocsinet ~]# nano /etc/httpd/conf.d/awstats.conf
[root@ocsinet ~]# nano /etc/httpd/conf.d/awstats.conf
[root@ocsinet ~]# service httpd restart
Interruzione di httpd:                                     [FALLITO]
Avvio di httpd: [Sun Apr 15 16:07:12 2012] [warn] The ScriptAlias directive in /etc/httpd/conf.d/awstats.conf at line 2 will probably never match because it overlaps an earlieptAlias.
Syntax error on line 2 of /etc/httpd/conf.d/awstats.sra.it.conf:
Invalid command 'LogFile="/var/log/ispconfig/httpd/sra.it/yesterday-access.log"', perhaps misspelled or defined by a module not included in the server configuration
                                                           [FALLITO]
[root@ocsinet ~]# nano /etc/httpd/conf.d/awstats.conf
[root@ocsinet ~]# service httpd restart
Interruzione di httpd:                                     [FALLITO]
Avvio di httpd: [Sun Apr 15 16:07:55 2012] [warn] The ScriptAlias directive in /etc/httpd/conf.d/awstats.conf at line 1 will probably never match because it overlaps an earlieptAlias.
Syntax error on line 2 of /etc/httpd/conf.d/awstats.sra.it.conf:
Invalid command 'LogFile="/var/log/ispconfig/httpd/sra.it/yesterday-access.log"', perhaps misspelled or defined by a module not included in the server configuration
                                                           [FALLITO]
[root@ocsinet ~]# nano /etc/httpd/conf.d/awstats.conf
[root@ocsinet ~]# rm  /etc/httpd/conf.d/awstats.conf
rm: rimuovere regular file `/etc/httpd/conf.d/awstats.conf'? y
[root@ocsinet ~]# nano /etc/httpd/conf.d/awstats.conf
[root@ocsinet ~]# service httpd restart
Interruzione di httpd:                                     [FALLITO]
Avvio di httpd: httpd: Syntax error on line 211 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/awstats.sra.it.conf: Could not open configuration fic/httpd/conf.d/awstats.conf: No such file or directory
                                                           [FALLITO]
[root@ocsinet ~]# nano /etc/httpd/conf.d/awstats.sra.it.conf
[root@ocsinet ~]# service httpd restart
Interruzione di httpd:                                     [FALLITO]
Avvio di httpd: Syntax error on line 2 of /etc/httpd/conf.d/awstats.sra.it.conf:
Invalid command 'LogFile="/var/log/ispconfig/httpd/sra.it/yesterday-access.log"', perhaps misspelled or defined by a module not included in the server configuration
                                                           [FALLITO]
[root@ocsinet ~]# rm  /etc/httpd/conf.d/awstats.sra.it.conf
rm: rimuovere regular file `/etc/httpd/conf.d/awstats.sra.it.conf'? y
[root@ocsinet ~]# service httpd restart
Interruzione di httpd:                                     [FALLITO]
Avvio di httpd: [Sun Apr 15 16:09:06 2012] [warn] NameVirtualHost 130.255.144.130:80 has no VirtualHosts
[Sun Apr 15 16:09:06 2012] [warn] NameVirtualHost 130.255.144.130:443 has no VirtualHosts
[Sun Apr 15 16:09:06 2012] [warn] NameVirtualHost 192.168.254.30:80 has no VirtualHosts
[Sun Apr 15 16:09:06 2012] [warn] NameVirtualHost 192.168.254.30:443 has no VirtualHosts
Reply With Quote
Sponsored Links
  #2  
Old 16th April 2012, 10:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Please post the contents of your /etc/httpd/conf.d/awstats.conf and /etc/httpd/conf.d/awstats.sra.it.conf files.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 16th April 2012, 12:37
veneficus veneficus is offline
Junior Member
 
Join Date: Mar 2012
Posts: 16
Thanks: 1
Thanked 1 Time in 1 Post
Default

basically i did, to have di .conf file, : cp /etc/awstats/awstats.model.conf /etc/httpd/conf.d/awstats.conf


after that i just commented all the instruction given by the bse file because all of them give a failed starting of apache.

i used also the command: /usr/local/ispconfig/server/cron_daily.php

that now gives this error:
Code:
  /usr/local/ispconfig/server/cron_daily.php
/usr/local/ispconfig/server/cron_daily.php: line 1: ?php: No such file or direct                                                                                           ory
/usr/local/ispconfig/server/cron_daily.php: line 3: /aquota.gruop: Permission de                                                                                           nied
/usr/local/ispconfig/server/cron_daily.php: line 4: syntax error near unexpected                                                                                            token `c'
/usr/local/ispconfig/server/cron_daily.php: line 4: `Copyright (c) 2007, Till Br                                                                                           ehm, projektfarm Gmbh'
here's first lines of your file :
Code:
<?php

/*
Copyright (c) 2007, Till Brehm, projektfarm Gmbh
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

define('SCRIPT_PATH', dirname($_SERVER["SCRIPT_FILENAME"]));
require(SCRIPT_PATH."/lib/config.inc.php");
require(SCRIPT_PATH."/lib/app.inc.php");

set_time_limit(0);

// make sure server_id is always an int
$conf['server_id'] = intval($conf['server_id']);


// Load required base-classes
$app->uses('ini_parser,file,services,getconf');
i can't regenerate di site awstats.conf file because it will stop my apache server, maybe i can try doing it this night.

please help, if you need some kind of access on it i can also create you in pm a user with shell access.

thanks

Last edited by veneficus; 16th April 2012 at 12:39. Reason: forgot a part of the needed infos
Reply With Quote
  #4  
Old 16th April 2012, 14:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,457
Thanks: 813
Thanked 5,228 Times in 4,098 Posts
Default

The command is:

/usr/local/ispconfig/server/cron_daily.sh

and not:

/usr/local/ispconfig/server/cron_daily.php

The file /etc/httpd/conf.d/awstats.conf is not used on a ispconfig system, so if you edited or enabled that, stats will fail. Same when you edited some cron job for awstats as ispconfig uses its own cronjobs, so enabling the system awstats cronjob beside the ispconfig cronjobs will cause errors.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.

Last edited by till; 16th April 2012 at 14:50.
Reply With Quote
  #5  
Old 16th April 2012, 15:21
veneficus veneficus is offline
Junior Member
 
Join Date: Mar 2012
Posts: 16
Thanks: 1
Thanked 1 Time in 1 Post
Default

ok so the suggested operation is to delete actual awstats.conf, then do a manual update with the update.php file, then generate an awstat statistics on a site and run the script, am i right?

thanks for you help
Reply With Quote
  #6  
Old 16th April 2012, 15:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,457
Thanks: 813
Thanked 5,228 Times in 4,098 Posts
Default

No, the procedure is:

1) Delete the file /etc/httpd/conf.d/awstats.conf
2) Run:

/usr/local/ispconfig/server/cron_daily.sh
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
veneficus (16th April 2012)
  #7  
Old 16th April 2012, 15:43
veneficus veneficus is offline
Junior Member
 
Join Date: Mar 2012
Posts: 16
Thanks: 1
Thanked 1 Time in 1 Post
 
Default

ok so i will try it tonight and update you, thanks
Reply With Quote
Reply

Bookmarks

Tags
awstats, awstats plugin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sessions not being saved gavimobile General 6 15th January 2012 15:05
trying to install roundcubemail ressel Installation/Configuration 13 24th December 2009 20:13
problems with suexec gobokster Installation/Configuration 7 7th May 2009 13:33
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 20:58
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45


All times are GMT +2. The time now is 20:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.