In the instructions provided by virtualmin it’s not mentioned what to do with virtualmin repositories, so I comment them before upgrade.
Another thing not mentioned in the instructions is how to resolve config conflicts. I check all of them for apache config files, spamassassing config file, networking init.d file and accept the new versions. I make some notes to fix only spamassassin config.
After this I received there were problems with:
apache2
libapache2-mod-php5
apache2-mod-php5
apache2-mod-prefork
mailman
I noticed there is no directory for enabled modules and all sites were disabled (listed only in sites available directory) and no mpm module was loaded. After fixing there problems (enable all modules + mpm-prefork and sites) and make small changes in site configurations (change to Require all granted) I started apache and it was working again. The problem was that php was not parsed and apache returns it as a text. I decide to upgrade virtualmin with hope it will check the configurations and will fix this problem. To upgrade virtualmin I just enable the new repositories and make apt-get update && apt-get upgrade. After this procedure virtualmin was updated but not fully working - and reporting that virtual host can not be configured to be executed as owner of the host because installed packages are from official debian repository (not from virtualmin repo) and the problem with php parsing still exits.
So my question is - is there someone else that upgraded Debian 7 to 8 and can it provide more detailed procedure. If there is no one can you tell me how to tell virtualmin to check and report for configuration problems and to install all required packages from it’s repository?
virtual-server::list_system_info failed : Undefined subroutine &net::active_interfaces called at /usr/share/webmin/virtual-server/virtual-server-lib-funcs.pl line 3617.
Starting with the last problem you mentioned, about the sites not working – if you go into Server Configuration -> Website Options, try changing the PHP Execution Mode to “CGI”. That should generate some additional errors in the Apache error log, which will hopefully make it more clear why your websites are having issues.
thank you for this suggestion. I will try it next time it’s possible. Now I’m trying to duplicate the server in virtual machine, so I can test upgrade without stopping the services.
I have other question related with this but it is for new thread.
cp: error writing ‘/tmp/XXXX.tar.gz’: No space left on device - the space in /tmp was not enough to restore the domain. Because this is VPS server and I do not have control over /tmp (I can not see it as a separate mounted device) I used
mount --bind /var/tmpn /tmp
chmod 777 /tmp
chmod +t
I have multiple databases for one of the domains that have foreign keys between them (https://www.virtualmin.com/node/38127) and virtualmin return an error trying to restore them. For this reason I restored everything with virtualmin except the databases. I restored the databases manually.
Virtualmin backup database with multiple insert statements, so I applied this change
max_allowed_packet = 16M
TLS was not enabled and there was a problem with receiving emails. To fix it I installed the certificate by going to ‘Server configuration -> Manage SSL Certificate’ and enable it for all services.