Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWStats configurations for domains left unchanged after the conversion #185

Closed
SandakovMM opened this issue Feb 26, 2024 · 4 comments
Closed
Labels
enhancement New feature or request

Comments

@SandakovMM
Copy link
Collaborator

Description
Plesk domains that use awstats have custom configuration files stored in the /usr/local/psa/etc/awstats/ directory. These files are created using the /etc/awstats/awstats.model.conf file from the awstats package. After the conversion, we need to regenerate these files as the template has been updated.
Additionally, if the new template is stored as rpmnew, we need to replace it with the original /etc/awstats/awstats.model.conf file.

@SandakovMM
Copy link
Collaborator Author

The problem should be solved by #189

@Bitpalast
Copy link

Bitpalast commented Mar 5, 2024

Not yet fixed in latest centos2alma script. Result in /etc/awstats directory:

total 336
drwxr-xr-x. 2 root root 4096 Mar 5 12:02 .
drwxr-xr-x. 98 root root 12288 Mar 5 12:02 ..
-rw-r--r--. 1 root root 64519 Mar 5 12:02 awstats.ems.conf
-rw-r--r--. 1 root root 64523 Mar 5 12:02 awstats.localhost.localdomain.conf
-rw-r--r--. 1 root root 64542 Mar 5 12:02 awstats.localhost.localdomain.conf.rpmsave
-rw-r--r--. 1 root root 64523 Mar 5 12:02 awstats.model.conf
-rw-r--r--. 1 root root 64692 Mar 5 12:02 awstats.model.conf.rpmsave

Would probably need a
# mv /etc/awstats/awstats.localhost.localdomain.conf.rpmnew /etc/awstats/awstats.localhost.localdomain.conf
# mv /etc/awstats/awstats.model.conf.rpmnew /etc/awstats/awstats.model.conf
before regenerating the awstats.conf files.

@SandakovMM
Copy link
Collaborator Author

Hmm, there is no .rpmnew files in the /etc/awstats as far as I could see. We store the old files in the .rpmsave files, which seems to be the expected behavior to me

@Bitpalast
Copy link

You are probably right. I checked this again on pre-conversion servers and found that

-rw-r--r--. 1 root root 63602 Mar 13 10:06 awstats.localhost.localdomain.conf
-rw-r--r--. 1 root root 64542 Mar 13 10:06 awstats.localhost.localdomain.conf.rpmnew
-rw-r--r--. 1 root root 63752 Mar 13 10:06 awstats.model.conf
-rw-r--r--. 1 root root 64542 Mar 13 10:06 awstats.model.conf.rpmnew
-rw-r--r--. 1 root root 63583 Mar 13 10:06 awstats.selke.conf

is obviously a status from before conversion. So the underlying issue with outdated awstats.conf files exists in Plesk in general. It now became visible through the centos2alma conversion as it had an effect when the software is updated.

So o.k., I agree that I was just mislead when checking a post-conversion status.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants