Page 1 of 1

CPANEL_LOG entries in csf.conf

Posted: 12 Jul 2023, 09:36
by cyonch
Hi everyone,

We have several servers with CloudLinux 7, cPanel and LiteSpeed with these entries in csf.conf:

Code: Select all

CPANEL_LOG = "/usr/local/cpanel/logs/login_log"
CPANEL_ACCESSLOG = "/usr/local/cpanel/logs/access_log"
On several other servers with the same configuration, however, these entries are not present. We do not define these entries with automation tools, and cPanel has no idea from where these entries are coming from.
Can someone here in the forums point us in the right direction?

Thanks
Ermanno

Re: CPANEL_LOG entries in csf.conf

Posted: 12 Jul 2023, 11:33
by ForumAdmin
That will happen if you install csf before installing cpanel. If you edit csf.conf and change GENERIC = "1" to GENERIC = "0" and then run the following to update csf it should recreate those entries:

Code: Select all

csf -uf

Re: CPANEL_LOG entries in csf.conf

Posted: 12 Jul 2023, 12:07
by cyonch
Thank you very much for your answer.
We tried it on one of our servers and it worked. The thing we notice is after running csf -uf, the GENERIC option is gone from the config file. Moreover, on servers where the cPanel entries are present, there is no GENERIC in the config file. On servers were GERERIC is present, there are no cPanel entries.
Is that normal behavior?

Thanks
Ermanno

Re: CPANEL_LOG entries in csf.conf

Posted: 12 Jul 2023, 12:12
by ForumAdmin
Yes, that's the expected behaviour

Re: CPANEL_LOG entries in csf.conf

Posted: 12 Jul 2023, 12:39
by cyonch
Thanks. As fare as I can see, this only updates the entries, but does not change or reset anything else, is that correct?