We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
How to sucessfully upgrade Debian8 to Debian9 using VestaCP
How to sucessfully upgrade Debian8 to Debian9 using VestaCP
First, let me say a few introduction words.
In this moment we don't have .conf files that are ''adapted'' to Debian9.
In this upgrading proccess I mostly left old conf files (from Debian8).
All daemons works very well with old conf files, as I expected (because every programmer leaves backward compatibility for conf files, for example, if they introduce some new variable in conf file, they will just set default value in case variable does not exists in conf file).
Now we have a full list of fresh conf files (modified in Debian9), and in next few weeks I will make 'diff' for those files, so we will have conf files that are 100% adapted to Debian9, and I will be able to adapt VestaCP installer and installer conf directory tree, so you will can install VestaCP directly to Debian9, not only through upgrade from Debian8 to Debian9.
Anyway, I'll repeat - everything works fine even with old conf files.
I still can not guarantee that absolutely everything works - but I went through all services - checked carefully - checked logs - and I didn't find any issue (only Roundcube says in error log that can not execute SQL statement to log wrong login attempt - but it's bug that does not affect anything, and soon I'll see how to alter that mysql table so we can eliminate that little error in log file).
This upgrading manual is for standard VestaCP installation (nginx+apache), but I guess it will works for php-fpm stack too (and for Apache-only), just choose to leave old conf files for php-fpm.
During upgrade proccess, installer will say for rondcube and phpmyadmin that can not convert .proc table in their databases... just select IGNORE - roundcube and phpmyadmin does not have even that table.
So, here is step by step manual:
If you have issue with letsencrypt (account registration 400 error), apply this fix - https://github.com/serghey-rodin/vesta/pull/1236/filesapt-get update
apt-get upgrade
apt-get dist-upgrade
reboot
sed -i 's/jessie/stretch/g' /etc/apt/sources.list
sed -i 's/jessie/stretch/g' /etc/apt/sources.list.d/nginx.list
apt-get update
apt-get upgrade
apt-get dist-upgrade
# during upgrade proccess apt will ask you what to do for some services, choose the following options:
# configuring roundcube database = select YES
# configuring phpmyadmin database = select YES
# configuring libc6 = select YES to restart services
# Configuration file '/etc/systemd/timesyncd.conf' = Y
# Configuration file '/etc/exim4/exim4.conf.template' = N
# Configuration file '/etc/apache2/apache2.conf' = N
# Configuration file '/etc/roundcube/apache.conf' = Y
# Configuration file '/etc/roundcube/defaults.inc.php' = N
# Configuration file '/etc/roundcube/htaccess' = Y
# Configuration file '/etc/roundcube/plugins/jqueryui/config.inc.php' = Y
# configuring roundcube core = select YES = select IGNORE = keep the local version currently installed
# Configuration file '/etc/roundcube/plugins/password/config.inc.php' = N
# Configuration file '/etc/ssh/ssh_config' = Y
# configuring clamav-daemon = keep the local version currently installed
# modified /etc/dovecot/conf.d/10-logging.conf = keep the local version currently installed
# modified /etc/dovecot/conf.d/10-mail.conf = keep the local version currently installed
# modified /etc/dovecot/conf.d/15-mailboxes.conf = keep the local version currently installed
# modified /etc/dovecot/conf.d/20-imap.conf = keep the local version currently installed
# modified /etc/dovecot/conf.d/20-pop3.conf = keep the local version currently installed
# Configuration file '/etc/phpmyadmin/apache.conf' = Y
# Configuration file '/etc/phpmyadmin/config.inc.php' = N
# Configuring phpmyadmin = select YES = select IGNORE = keep the local version currently installed
# Configuration file '/etc/vsftpd.conf' = N
reboot
# If you are using PHP via Apache then run this three commands:
a2dismod php5
a2enmod php7.0
service apache2 restart
chown admin:admin /var/log/roundcube
chmod 0755 /var/log/roundcube
echo "\$cfg['blowfish_secret'] = 'qtdRoGmbc9{8IZr323xYcSN]0s)r$9b_JUnb{~XQ';" >> /etc/phpmyadmin/config.inc.php
# change this hash string to randomly hash
sed -i '1s#^#Alias /webmail /var/lib/roundcube\n#' /etc/roundcube/apache.conf
service apache2 reload
(fix is added to master branch on github tonight)
I will appreciate feedbacks, so we can fix bugs if I missed to find them :)
P.S. Sorry for my not-perfectly english :)
Re: How to sucessfully upgrade Debian8 to Debian9 using VestaCP
Here is how to enable http/2 on nginx.
You only need to edit /home/some_username/conf/web/sngingx.conf and find a line that begin with ''listen'' and add at at the end of line ssl http2 so line looks like:
Code: Select all
listen 111.222.111.222:443 ssl http2;
Code: Select all
service nginx restart
(and other nginx templates if you are using other nginx templates)
ALPN is also enabled, no need to configure anything.
You can test your site here: https://tools.keycdn.com/http2-test