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.
106
E-Mail / Re: Need help. all mail deferred
« on: January 01, 2022, 10:16:42 PM »
What is the result you have, issuing the following command?:
Code: [Select]
# ls -alF /var/vmail/madeiniran.com/sales/
107
Updates / Re: New update broke http conf files and php fpm
« on: January 01, 2022, 10:09:55 PM »ok, i disabled Hide all processes and now i get this with the script so not sure if it worked or not
sh: /etc/varnish/default.vcl: No such file or directory
sh: /etc/varnish/default.vcl: No such file or directory
sh: /etc/varnish/default.vcl: No such file or directory
mkdir: cannot create directory ‘/etc/varnish/conf.d’: No such file or directory
sh: /etc/varnish/default.vcl: No such file or directory
sh: /etc/varnish/conf.d/vhosts.conf: No such file or directory
sh: /etc/varnish/conf.d/vhosts.conf: No such file or directory
ls: cannot access /etc/varnish/conf.d/vhosts/*.conf: No such file or directory
You have enabled and installed Varnish Server in CWP panel?
108
CentOS-WebPanel Bugs / Re: After update or script update, my conf files of vhosts al revert to default
« on: January 01, 2022, 10:06:17 PM »What a pain in the butt!
For some of us who use nginx as default webserver, there's no such thing as .htaccess. Therefore all redirects, rewrites, etc. have to be written to the vhost conf file. Creating a separate template file for EACH website based on their rewrite/redirect needs seems like too much work to do.
So far, the only viable solution that I've found is to keep a backup copy of the vhosts' conf files and created a script that will run periodically to match md5sums and if some file is different, it replaces the current file with the backup and then reloads nginx.
You can use the following command to freeze the any regular file, preventing any changes in it:
Code: [Select]
# chattr +i /path/to/file
Use it in a controlled way, knowing when to remove the immutability of the file, for example, when you need to change it.When you want to change that file, just issue the command:
Code: [Select]
# chattr +e /path/to/file
109
CentOS-WebPanel Bugs / Re: After update or script update, my conf files of vhosts al revert to default
« on: January 01, 2022, 09:56:22 PM »Any way to run this command every hour for example?
Because my websites are blank every day and some times 2 times for day
Surely.
But the problem is supposed to be solved, with that command, after 'update_cwp' command.
So, must be issued three commands, as root user:
Code: [Select]
# /scripts/update_cwp
# rm -f /usr/local/cwp/users/suspended/*.bandwidth
# /scripts/cwp_api webservers rebuild_all
The new and updated version of CWP is supposed to solve the problem.
If you have problems in the execution of these commands, may be you need to update Ioncube loader:
Code: [Select]
# /scripts/update_ioncube
To put the commands after daily update, you can add he commands to the file '/etc/cron.daily/cwp'.
To run hourly, put the cwp file above in '/etc/cron.hourly/'.
110
CentOS-WebPanel Bugs / Re: After update or script update, my conf files of vhosts al revert to default
« on: January 01, 2022, 09:45:00 PM »(...)
But what "worries" me is that one day a new change to the templates (in my case apache) will enter and since I am using a custom one, I may not be aware of this possible new change.
Be that as it may, I understand the people who comment on it, this did not happen before, for months, years and so on, now, every day the daily automatic script rebuilds and we lose all the changes made.
If you apply the template to any domain in "Webservers Conf Domain", the future changes in templates will not affect your customization.
Quote
Greetings and happy new year.
Regards, and happy new year!
111
Updates / Re: New update broke http conf files and php fpm
« on: January 01, 2022, 01:45:00 AM »stil same problem. not working
No error messages?
I can't guess what happen in your server without error messages.
Any error log messages?
After /scripts/update_cwp' command, you *must* to run:
Code: [Select]
rm -f /usr/local/cwp/users/suspended/*.bandwidth
/scripts/cwp_api webservers rebuild_all
112
Postfix / Re: Mail server problems
« on: January 01, 2022, 12:50:37 AM »I also have same issue some Password query failed: Unknown column 'token_validity' in 'field list' in dovecot log started after updates.
Seems you have a problem in dovecot-mysql configuration.
Check your file: /etc/dovecot/dovecot-mysql.conf and check if all fields pointed in this file are present in your postfix database (a mysql database).
113
CentOS-WebPanel Bugs / Re: After update or script update, my conf files of vhosts al revert to default
« on: January 01, 2022, 12:29:34 AM »
You may have had your sites up and running for months with a custom setup, because in no time did you have to rebuild your sites. When you do that, it changes *all* the site settings in apache, and if you made any changes there, you lose them all.
To avoid this, you should configure additional files in the 'conf.d' directories, either from apache or nginx. So when these changes take place, they won't affect the settings in apache/nginx.
If this is not possible, you should make changes to the apache or nginx templates, and apply the template to the respective site. To change the template, as it will also be overwritten by future changes, you must create new template files in their respective directories, and apply the template to the site configuration under "Webservers Domain Config".
To avoid this, you should configure additional files in the 'conf.d' directories, either from apache or nginx. So when these changes take place, they won't affect the settings in apache/nginx.
If this is not possible, you should make changes to the apache or nginx templates, and apply the template to the respective site. To change the template, as it will also be overwritten by future changes, you must create new template files in their respective directories, and apply the template to the site configuration under "Webservers Domain Config".
114
CentOS-WebPanel Bugs / Re: Error in Conf files after update!
« 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
115
CentOS-WebPanel Bugs / Re: After update or script update, my conf files of vhosts al revert to default
« on: December 31, 2021, 04:15:41 AM »
As reported by CWP team, the solutions is just:
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
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
116
CentOS-WebPanel Bugs / Re: All vconf files restored to default, also webserver conf
« on: December 31, 2021, 04:04:26 AM »
As reported by CWP team, the solutions is just:
The first command remove all bandwidth limits from your sites, and the second rebuil all sites configurations of your webservers.
Regards,
Netino
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.
Regards,
Netino
117
CentOS-WebPanel Bugs / Re: BUG**ssl renew now renews ALL
« on: December 31, 2021, 04:01:20 AM »I have the same problem, one month ago, expire my auto SSL, automatic, has renew my SSL domain, but not admin services (like mail...).
My solution, delete the SSL of the domain and recreate again with select the SAN thats I need.
Yes, it works too.
Another way is to just add the missing DNS records for that domains.
The missing domains you can check too with the following command, since the last restart of your Apache server (if using Apache server):
Code: [Select]
# grep AH01909 /usr/local/apache/logs/error_log
118
Updates / Re: New update broke http conf files and php fpm
« on: December 31, 2021, 03:55:11 AM »(...)
i can't update cwp pro due to problem.
[root@******~]# /scripts/update_cwp
Could not open input file: /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php
not working.
Try first the following command, to update Ioncube loader:
Code: [Select]
# /scripts/update_ioncube
After that, try the command:
Code: [Select]
/scripts/update_cwp
119
Updates / Re: New update broke http conf files and php fpm
« on: December 31, 2021, 03:52:29 AM »
As reported by CWP team, the solutions is just:
The first command remove all bandwidth limits from your sites, and the second rebuil all sites configurations of your webservers.
Regards,
Netino
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.
Regards,
Netino
120
Updates / Re: After update today, nginx/1.20.0 error
« on: December 31, 2021, 03:46:45 AM »For the last 2 nights/mornings I woke up to see all our vhosts overwritten and none of our sites working. On one server, we only have one site on it. I would never think it would have to do with bandwidth issues but should I go ahead and try the fix above and see what happens?
Yes.
This is being reported by CWP team, and the users in this forum, as the solution.