Archive for the tag 'Manually'

SBDavid

Update awstats in Plesk Manually

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
SBDavid

Update awstats in Plesk Manually

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
SBDavid

Updating DirectAdmin Manually

Updating DirectAdmin Manually

If you need to update your copy of DirectAdmin manually, you can do so by running the following commands:

cd /usr/local/directadmin
wget -O update.tar.gz https://www.directadmin.com/cgi-bin/daupdate?uid=123\&lid=1234
tar xvzf update.tar.gz
./directadmin p
cd scripts
./update.sh
service directadmin restart

Where 123 and 1234 are your Client ID and License ID, respectively. Note that if you are running FreeBSD, you might need to add a \ before the ? character in the wget line. If there are errrors extracting the update.tar.gz file, then run:

head -n 1 update.tar.gz

to search for an error.

« Prev