To fix it add any lines in /usr/local/directadmin/plugins/awstats/user
First off, great plugin.
When trying to view AWSTATS for a domain, I get the following error...
The reason for this error... the /awstats directory WAS NOT created in each of the domain directories. If I manually create the directory in the root of the domain directory, and chown it to the username, AWSTATS works fine.
I did run the alldomains.php command, and AWSTATS is activated for the domain.
Any clues as to why the /awstats directory was not created for all of the domains? Is there a way to create all of these directories without having to do it manually?
Thanks in advance.
To fix problem i add any lines in /usr/local/directadmin/plugins/awstats/user/index.html file
Search this fragment:
----------------begin--------------------------------------------
$location=$_SERVER["HOME"]."/domains/$domains[$awdomain]/public_html/awstats";
echo "Checking if there is already something installed..<BR>";
if (file_exists($location)) echo "AwStats Directory already exists on domain<BR>";
else {
echo "Creating AwStats dir on domain<BR>";
mkdir($location);
echo "Setting Directory Permissions";
chgrp($location,$_SERVER['USER']);
}
----------------end--------------------------------------------
and replace he:
----------------begin--------------------------------------------
$location=$_SERVER["HOME"]."/domains/$domains[$awdomain]/public_html/awstats";
$locationd=$_SERVER["HOME"]."/domains/$domains[$awdomain]/stats";
echo "Checking if there is already something installed..<BR>";
if (file_exists($location)) echo "AwStats Directory already exists on domain<BR>";
else {
echo "Creating AwStats dir on domain<BR>";
mkdir($location);
echo "Setting Directory Permissions";
chgrp($location,$_SERVER['USER']);
echo "Creating AwStats data dir on domain<BR>";
mkdir($locationd);
echo "Setting Directory Permissions on data dir";
chgrp($locationd,$_SERVER['USER']);
}
----------------end--------------------------------------------
And fix this error.
Thanks all.