• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Web Statistics

C

ChildOTK

Guest
Hi Everybody

I am having a wierd issue here with regard to my web statistics.

I have a server running RHEL4 using Plesk as its control panel. A few weeks ago I attempted to make use of the Updater within Plesk to update from 8.1.1 to 8.3. My guess is something went wrong somewhere, as Plesk still shows itself on 8.1.1 and just refuses to update.

Is there an alternative way to update my version of Plesk from 8.1.1 to 8.3?

Since around the time of the attempted update my webstats have not been working properly. For one domain in particular, the https stats work, and get generated, but not my http stats. I have tried switching the stats to use AWSstats from Webalizer, but I get no results at all even after two days with AWStats, with Webalizer the https stats get regenerated but not my http stats.

The https stats also seem to have been lost, as now I only have from this last month.


Any help will be appreciated.

Regards
ChildOTK
 
Try running the stats command manually from the command line and see what errors are produced - if any - and see if you can correct them then.

PHP:
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=<domain_name>


For the updater, you can download the latest version of the updater from psa website and then install from the command line, or you can use the command line to update it as well

/usr/local/psa/admin/bin/autoinstaller
 
Thank you HostingGuy for your reply.

I have tried to update Plesk via the command line, and I get a lot of similar warnings like:



Warning: packages conflict by files detected: package sw-sso-2.0-r1898.i386
conflict with package sw-sso-1.0-r930.i386
both have file /etc/sw-cp-server/applications.d/sso-cpserver.conf with different md5 sum.


And then I get:


ERROR: Unable to install the "psa-php4-configurator-1.3.0-rhel4.build83071218.18.noarch" package.

The following could cause the installation failure:
Packages "php-4.3.9-3.22.9.i386" and "php-5.2.5-4.el4.art.i386" cannot be installed at the same time
.


I find that wierd as when I have a PHP file in for phpinfo() It reports I am running on PHP5.




As for my web statistics using the command line I get:

error: error accessing /var/www/vhosts/domain.com/statistics/logs: No such file or directory

My files are all going to /home/httpd/vhosts/domain.com


Where will I change where the statistics program looks for the files?
 
/var/www/vhosts/ is the default location, if you have changed it make sure that HTTPD_VHOSTS_D is set properly

# grep -i HTTPD_VHOSTS_D /etc/psa/psa.conf
HTTPD_VHOSTS_D /var/www/vhosts


For php, remove php-4.3.9-3.22.9.i386 first
 
Ok, I just did the same command you did:


[root@mx backup]# grep -i HTTPD_VHOSTS_D /etc/psa/psa.conf
HTTPD_VHOSTS_D /home/httpd/vhosts
[root@mx backup]#


So I guess it is correctly configured then.



As for PHP4:

If I do a "rpm -qa | grep php" nothing comes up with php4 as installed, only php5 stuff, and if I do a "yum list | grep php" I get the same thing. Only php5 stuff. The only mention of php4 is the "psa-php4-configurator-1.1.0-rhel4.build81070322.16" package.

With "yum list | grep php" the php4 packages show, but do not show as installed, but available to install.


So I cannot understand why the Plesk autoinstaller says php4 is installed.
 
Ok well I have solved my problem relating to the Plesk upgrade.

I got it to upgrade using YUM. Worked great.


I am reconfiguring my domains stats, so will see if the upgrade has fixed the issue.
 
Just an update here, resetting my webstats have worked, and I have all my stats from the previous months. YAY!
 
Back
Top