View Single Post
Old 17th October 2006, 00:01
bogdanbrudiu bogdanbrudiu is offline
Junior Member
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

I have runde manualy /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php and I do not get error..
bot no stats also..
in /awstats a index.php file gets generated
mainframe:/var/www/ cat ./index.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
$dir = ".";

if( $dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
$pattern = 'awstats\..*\.[0-9]{4}-[0-9]{2}\.html';
if (ereg($pattern, $file)) {
echo "<a href=\"$file\">$file</a><br />";
but when i try to see it in a browser is empty (the awstats folder does not contain file matching awstats\..*\.[0-9]{4}-[0-9]{2}\.html)
the only files there are index.php and .htaccess
I did not figure out from your scripts where is awstats called to generate the reports from the config files?
Reply With Quote