Author Topic: Error in Conf files after update!  (Read 2952 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Error in Conf files after update!
« on: December 30, 2021, 05:02:59 AM »
New update has arrived.

but my Varnish default.vcl file is back to original.

The files under /opt/alt/php-fpm74/usr/etc/php-fpm.d/users/ became the default.

Files in nginx/vhost return default.

Are we going to deal with these in every update? Is there any way to prevent this?

Offline
**
Re: Error in Conf files after update!
« Reply #1 on: December 30, 2021, 07:56:11 AM »
Same problem with update_cwp daily night in apache, all my conf files of vhost are revert to default...

Offline
*
Re: Error in Conf files after update!
« Reply #2 on: December 30, 2021, 11:02:30 AM »
Same problem here.. on all my 10+ Server...

Offline
**
Re: Error in Conf files after update!
« Reply #3 on: December 30, 2021, 12:15:55 PM »
Yes, in all of my servers I have, same issue.
I created this thread with this: https://forum.centos-webpanel.com/index.php?topic=11633.0
And also view others users with same problem: https://forum.centos-webpanel.com/index.php?topic=11635.0

Offline
***
Re: Error in Conf files after update!
« Reply #4 on: December 31, 2021, 04:20:46 AM »
New update has arrived.

but my Varnish default.vcl file is back to original.

The files under /opt/alt/php-fpm74/usr/etc/php-fpm.d/users/ became the default.

Files in nginx/vhost return default.

Are we going to deal with these in every update? Is there any way to prevent this?

As reported by CWP team, the solutions is just:
Code: [Select]
rm -f /usr/local/cwp/users/suspended/*.bandwidth
/scripts/cwp_api webservers rebuild_all
The first command remove all bandwidth limits from your sites, and the second rebuil all sites configurations of your webservers.

NOTE: if you customize your webserver configuration, you *must* customize too the webserver templates in "/usr/local/cwpsrv/htdocs/resources/conf/web_servers/", otherwise, they will always be overwritten when CWP is updated.
(check there your webservers files used)

The templates are *always* overwritten when CWP is updated too. So, you *must* to create additional files in that directories, instead to change it.

One way to avoid this customization above (in webserver templates) is to create your custom files directly in 'conf.d' diretories of your webservers, avoiding to change the system config webserver files.

Regards,
Netino