Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rklendes

Pages: [1]
1
Apache / Re: Conf files reset problem
« on: January 02, 2022, 09:17:44 AM »
Hi,

I am editing and using vhost conf files (/usr/local/apache/conf.d/vhosts) of some websites on my server. However, on certain dates, all conf files are reset and all the edits I have made are deleted.

What task triggers this reset? How can I disable this?
(image)
Thanks in advance for your help.

You must avoid to change directly the vhosts/*.conf files.
They will always overwritten always the webservers must be rebuilt.
I a recent update of CWP was needed to rebuild the webservers.
Instead of to change directly the vhosts conf files, you must create additional custom templates, simply copying and change them.
After that, you must apply the customized template to you site in CWP, "WebServers Domain Conf".

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 per-si are *always* overwritten when CWP is updated too. So, you *must* to create additional files in that directories, instead to change it.
Copy an existant file, change the name of the file, one for .conf and another for .ssl.conf (always two files, obligatorily). This is needed to the template is showed in the "WebServers Domain Conf".

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. You can use it, if possible.

The triggers are the rebuild of the WebServers.
Possibly, the update_cwp routine now is rebuilding the Webservers daily.
It is in a cron file: /etc/cron.daily/cwp

Regards,
Netino

First of all, thank you very much for your help.

As I understand it;

I created a template via WebServers Template Editor. I associated it with the relevant website via WebServers Domain Conf and rebuild the vhosts file. Everything looks normal now.

When an update is released, the vhosts file will be created over the template I specified, so I will not have the same problem. I hope I understood correctly.

Best regards.

2
Apache / Conf files reset problem
« on: January 01, 2022, 04:34:42 AM »
Hi,

I am editing and using vhost conf files (/usr/local/apache/conf.d/vhosts) of some websites on my server. However, on certain dates, all conf files are reset and all the edits I have made are deleted.

What task triggers this reset? How can I disable this?



Thanks in advance for your help.

Pages: [1]