Update awstats in Plesk Manually
To update stats manually for a domain, you can run the following command. Replace the “domain.com” with the domain name.
$ /usr/local/psa/admin/sbin/statistics –calculate-one –domain-name=domain.com
To generate stats for all the domains in the server, use the following command.
$ /usr/local/psa/admin/sbin/statistics
If you receive any error, please make sure that the binaries are present in the path specified in the configuration file ‘/etc/psa/psa.conf’
$ grep AWSTAT /etc/psa/psa.conf
will return the path
AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /var/www/cgi-bin/awstats
AWSTATS_TOOLS_D /usr/share/awstats
AWSTATS_DOC_D /var/www/html/awstats
Make sure that the following files are present in the correct location.
awstats_buildstaticpages.pl: /usr/share/awstats/awstats_buildstaticpages.pl
awstats.pl: /var/www/cgi-bin/awstats/awstats.pl
Unable login into the domain stats
Issue: Unable to login into the stats of the domain (in Plesk). It is asking the password continuously.
Search for the following entry in /var/www/vhosts/domainName/conf/httpd.include:
(The file /var/www/vhosts/domainName/conf/httpd.include is actually HTTPD_VHOSTS_D/domainName/conf/httpd.include):
<Directory "/var/www/vhosts/domainName/statistics">
AuthType Basic
AuthName "Domain statistics"
AuthUserFile /var/www/vhosts/domainName/pd/d..httpdocs@plesk-stat
require valid-user
</Directory>
It is in that AuthUserFile, the login name as well as the encrypted password is stored.
So adding a new user login details in that file fix the problem, and you can add it as follows.
Create the encrypted password using htpasswd command.
htpasswd -bd /var/www/vhosts/domainName/pd/d..httpdocs@plesk-stat
This will fix the issue.
Note : Replace the domainName by corresponding domain name.
Installed SSI extensions are not detected by Plesk
SSI extensions are installed on the server but Plesk saying that the ‘Component is not installed’ in the component management page in Plesk.
You can fix this issue using the below steps.
1. In server
Start >> Control Panel >> Add/Remove programs >> Add/Remove Windows Components >> Application Server >> IIS >> World Wide Web service >> deselect the Server Side Includes option.
2. Once you done the above steps, restart all Plesk services and IIS Admin Service in service console.
3. In server
Start >> Control Panel >> Add/Remove programs >> Add/Remove Windows Components >> Application Server >> IIS >> World Wide Web service >> Select the Server Side Includes option.
4. Also make sure that Server Side Includes status as Allowed in IIS management.
5. Restart all Plesk services and IIS Admin Service in service console.
6. In Plesk
Main >> Server >> Component management >> Click the refresh button.
Now you can see SSI Component is installed in service section.
Getting a 404 error when logging into sqladmin of any domain
If you are getting 404 error while accessing sqladmin page, please follow the two steps shown below.
“%plesk_bin%\websrvmng.exe” –reconfigure-sqladmin
“%plesk_bin%\defpackagemng.exe” –fix –type=sqladmin.mssql
This error is due to incorrect configuration of web admin in IIS.
Unable to check and fix permissions in Plesk [ After Upgrade to 8.3 ]
ERROR
Undefined variable: sa_rel in C:\Program Files\SWsoft\Plesk\admin\plib\SiteApps\class.SiteA ppPackageManager.php on line 478
RESOLUSION
Please download the modules “class.SiteAppPackageManager.php ” and copy it to folder
%plesk_dir%admin\plib\SiteApps.
Note : Please backup old module before copying.
You can download the file from following URL.
ftp://download1.swsoft.com/Plesk/Autoupdate/Windows/8.3.0/128717/class.SiteAppPackageManager.php