Page 1 of 2

How to properly update system with myVesta

Posted: Mon Dec 21, 2020 5:23 pm
by myVesta
Good practice is to update your server at least one time per month with new software updates and security fixes.

Here is how to do that.

Log in to your SSH, as root.
Type:

Code: Select all

apt-get update
and then:

Code: Select all

apt-get -y --with-new-pkgs upgrade
and then:

Code: Select all

apt-get -y dist-upgrade
During this process, you will be probably asked to overwrite existent conf files with new one.
Please select No (or select "keep the local version currently installed").
Those options are actually default options.

Why not to override conf files?
Here is an example.
If you override php.ini with new version - you'll override disable_functions option (that we put as best security setup) and that way you will actually downgrade security of your web system.
Other example is /etc/exim4/exim4.conf.template - we modified that file a lot, and if you install default Debian version of that file, you will completly mess up exim4 service.
During updates, it is very often that apt will also ask to overwrite /etc/clamav/clamd.conf or /etc/roundcube/config.inc.php.
Just don't do it.

Actually, there are very rare situations where you should override config files during apt upgrades... almost never.
In general, most likely you will mess up services if you install config files that comes via apt updates.

Re: How to properly update system with myVesta

Posted: Tue Feb 02, 2021 4:25 pm
by azlanirda
does this means that we can remove the default cron update after installation in vesta?

and only perform the update like you suggest above?

thanks.

Re: How to properly update system with myVesta

Posted: Wed Feb 03, 2021 11:05 am
by myVesta
azlanirda wrote: Tue Feb 02, 2021 4:25 pm does this means that we can remove the default cron update after installation in vesta?
Cron v-update-sys-vesta-all will just update myVesta.
System will not be updated.

I don't suggest to remove v-update-sys-vesta-all, in future maybe there will be urgent security update for myVesta.

Re: How to properly update system with myVesta

Posted: Sat Apr 02, 2022 4:54 pm
by 1webdomain
why after done all steps i see always Latest build date: 17-dec-2021 ?

Re: How to properly update system with myVesta

Posted: Sat Apr 02, 2022 5:40 pm
by myVesta
because it's official latest build.
after that date I made just re-builds with few micro fixes - but it's not (still) released as new version - so that's why nobody got those fixes yet.

anyway, you can 'force' update with:

Code: Select all

rm /var/cache/apt/archives/vesta_*
apt update && apt install --reinstall vesta
to be clear - you will get all updates when I decide that it's worth to release fixes as update (new version).

Re: How to properly update system with myVesta

Posted: Mon Apr 04, 2022 10:51 am
by srv
How can I install latest build version during a fresh myvestacp installation?

Re: How to properly update system with myVesta

Posted: Mon Apr 04, 2022 11:12 am
by myVesta
srv wrote: Mon Apr 04, 2022 10:51 am How can I install latest build version during a fresh myvestacp installation?
just normally run myvesta installer - it will retrieve the very latest build.

Re: How to properly update system with myVesta

Posted: Sun Jul 24, 2022 5:44 am
by jrojas
Hi, In the Myvesta panel in the updates section, vesta, vesta-php, and vesta-nginx appear as outdated.

I give to update and nothing happens. What is the reason for this? How can I update these packages via SSH?

I have already updated the server.

Thank you in advance for your answer.

Re: How to properly update system with myVesta

Posted: Sun Jul 24, 2022 2:33 pm
by myVesta
jrojas wrote: Sun Jul 24, 2022 5:44 am Hi, In the Myvesta panel in the updates section, vesta, vesta-php, and vesta-nginx appear as outdated.

I give to update and nothing happens. What is the reason for this? How can I update these packages via SSH?

I have already updated the server.

Thank you in advance for your answer.
viewtopic.php?f=2&t=407

Re: How to properly update system with myVesta

Posted: Sun Jul 24, 2022 4:52 pm
by jrojas
I was confused, I thought this solution was only for updating the server.
Thank you for your prompt response. Issue has been resolved.