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

Permission denied error, while executing Nagios binaries

Nagios provides enterprise-class Open Source monitoring of hosts and services.

Make sure that the Nagios user has correct ownership/permissions to Nagios files in the Nagios installation directory.

Check if SElinux is enabled. If it is enabled, the Nagios binaries won’t be executed.

There are 3 alternative solutions for this.

1) Disable SElinux, SELINUX=disable.

2) Make it execute non-built-in services like Nagios by setting, SELINUX=permissive. This would cause the binaries to execute with only warnings logged to /var/log/messages.

If you go for the fix 1 or 2, you would need to reboot the server once.

3) You can change the security context of the Nagios binaries and make them executable with SElinux enabled.

chcon -t sbin_t /usr/local/nagios/sbin
chcon -R -t sbin_t /usr/local/nagios/sbin/

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.

« Prev - Next »