Control Web Panel
WebPanel => Updates => Topic started by: pedromidiasf on April 12, 2015, 12:48:01 PM
-
How can i disable it? I want to do it manually when i feel right.
I'm making changes on my server (installing and configuring other things), and i don't want an update to destroy my configurations.
-
My first suggestion is to block by iptables/csf all the comunnication with centos-webpanel.com
Im not sure if you can also chmod cwp core files with readonly.
The whole configuration is not at one location. Some of the software are 3rd party then located anywhere. (csf, mail, named, etc...)
Also im not really sure about what do you mean with "destroy my configurations.".
Do you mean a concrete config, or just talking about "all".
Consider to use Rsync with a remote machine. You'll be able to restore it with easy.
No idea about a button.
-
I had an update that made my email server stop working correctly and i was not able to receive email and not able to fix the problem. That's a good idea, firewall-wise.
But i believe there's an cronjob that does it, but i'm not sure how to locate that and i believe its this:
*/1 * * * * root /usr/local/rtm/bin/rtm 3 > /dev/null 2> /dev/null
-
I would never disable automated update. Just 1% of my thought.
-
I would never disable automated update. Just 1% of my thought.
Why? I got to know that updates sometimes change configurations and take ssh commands without my command, and that can ruin my server and at the moment i don't have time to fix problems :(
-
I agree with VOLUNTARY upgrade. I prefer the things than i can fire when i like to do.
Like doublecheck the things too.
Even if you configure rsync... what happend if few hours/days ago the remote server stop working and you fuckup your hosting because autoupdate? Then you cry.
I guess my web server is important enough to check before big changes.
pedromidiasf There's no /usr/local/rtm/bin/rtm
FILE at CWP.
The rtm it's a real time monitoring tool. I guess you are running a OVH VPS (http://guias.ovh.es/RealTimeMonitoring).
So this cron job is nothing about update CWP.
to DEVELOPER: Do we have a easy way to do that?
-
Yes i'm running OVH but with a dedicated server.
I edited this:
/etc/cron.daily/cwp
and commented this line
# (bla bla bla) /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php
And I'm still having daily backups (files and databases) and no update so far.
And the cronjob emails are not referring updates
It looks like it's working :)
----
But i don't recommend you to activate it in the future because you might be doing a semi-update that might ruin your server.
But maybe i'm wrong, i don't know how the updates are being made
-
Even if the code of cron.php is not readable, non https connections can be readed/interpreted just watching traffic.
I think cron.php does more than just try update, but im not sure just now.
I'd prefer to wait for a developer/admin/moderator answer instead lost time playing that.
-
main function of the cron script is to check updates, but if you disable updates and then after some time enable them, then you will go to the last update immediately and loose all update changes between and that can cause issues with your server.
In short you have two options
1. permanently disable updates
2. leave live updates
-
oh ok, then I'll leave it disabled.
It's working perfectly for what i need :)
Thanks admin for letting me know
-
interpreting this statement "main function of the cron script is to check updates" i can know that the cron.php does more than just update haha. Don't?
main has implicit the fact of more actions inside this file.
-
I believe there are two reliable methods built-in to cwp.
1) Firewall Configuration: /etc/csf/csf.conf
There is a directive/setting labeled AUTO_UPDATES set to 1 by default. Change this to 0.
2) CWP Scripts
I have not attepted this method but according to cwp wiki there are scripts. One of these scripts is labeled update_cwp. This may just pertain to the core but there are others as well. It may be worth looking into.
----------------------------------------
CentOS Web Panel has also scripts folder to help you with the upgrades or additional tool installations.
For all of you liking to work in a shell we are preparing additional scripts list.
Available Scripts with the latest version
update_cwp //Update CWP to the latest version
upgrade_mysql //Upgrade phpMyAdmin and MySQL to 5.5
install_imagick //Installs Image Magick
install_maldet //Installs Maldet
install_net2ftp //Installs Net2FTP, Usage http://IP/net2ftp
user_backup //Create User backup, Usage: sh /scripts/user_backup USERNAME
whoowns //Get Domain owner, Usage: sh /scripts/whoowns DOMAIN
list_users //List all user accounts
list_domains //List all addon domains
list_subdomains //List all Sub-Domains
cwp_bruteforce_protection //Enable CSF/LFD Brute/Force protection
mysql_pwd_reset //Reset root MySQL password
Usage
sh /scripts/SCRIPT-NAME
/scripts/SCRIPT-NAME
…many others coming soon
Source: http://wiki.centos-webpanel.com/cwp-scripts
---------------------
Currently running
Distro Name: CentOS release 6.8 (Final)
Kernel Version: 2.6.32-642.6.1.el6.i686
CWP version: 0.9.8.82
-
I come to this topic because I also want to disable the auto-update, this process usually break my custom configuration on my production server. Here is how you disable the updater:
nano /usr/local/cwpsrv/htdocs/resources/scripts/update_cwp
put # at beginning of each lines in it
-
so it looks like there are two methods here:
1. disable AUTO_UPDATES in /etc/csf/csf.conf
2. comment out /usr/local/cwpsrv/htdocs/resources/scripts/update_cwp
Which one works to disable update? Thanks!
-
so it looks like there are two methods here:
1. disable AUTO_UPDATES in /etc/csf/csf.conf
2. comment out /usr/local/cwpsrv/htdocs/resources/scripts/update_cwp
Which one works to disable update? Thanks!
i have already do this view day ago, but update will be start again, and make for issues with web server nginx break all website
- anyone know how disable update permanently ?
- or how to use update only when needed ? (like cPanel)