• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue plesk-stats change directory name?

You can try to do it with customization of vhost template - https://docs.plesk.com/en-US/onyx/a...settings-using-configuration-templates.68693/

You need to create custom template with something like

# mkdir -p /usr/local/psa/admin/conf/templates/custom/domain/
# cp /usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php /usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php

and then modify custom template /usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php

As you can see there are following mentions of plesk-stat:

# grep plesk-stat /usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php
Alias "/plesk-stat" "<?php echo $VAR->domain->physicalHosting->statisticsDir ?>"
<Location /plesk-stat/>
<Location /plesk-stat/logs/>
Redirect permanent /plesk-stat https://<?php echo $VAR->domain->urlName ?>/plesk-stat

Do not forget about point 5 from the mentioned documentation after template customization.
 
Back
Top