installing virtualmin Centos 7

I have centos 7 with php 5.6 and mariaDB client 10.2.3 i tried to install virtualmin using install.sh script but i am getting following errors

Error: installed package MariaDB-client-10.2.3-1.el7.centos.x86_64 obsoletes mariadb provided by mariadb-1:5.5.56-2.el7.x86_64. installed package MariaDB-server-10.2.3-1.el7.centos.x86_64 obsoletes mariadb-server provided by mariadb-server-1:5.5.56-2.el7.x86_64. package php-mbstring-5.4.16-42.el7.x86_64 requires php-common(x86-64) = 5.4.16-42.el7, but none of the providers can be installed. package php-xml-5.4.16-42.el7.x86_64 requires php-common(x86-64) = 5.4.16-42.el7, but none of the providers can be installed. package php-5.4.16-42.el7.x86_64 requires php-common(x86-64) = 5.4.16-42.el7, but none of the providers can be installed. package php-xmlrpc-5.4.16-42.el7.x86_64 requires php-common(x86-64) = 5.4.16-42.el7, but none of the providers can be installed. package php-gd-5.4.16-42.el7.x86_64 requires php-common(x86-64) = 5.4.16-42.el7, but none of the providers can be installed. package php-fpm-5.4.16-42.el7.x86_64 requires php-common(x86-64) = 5.4.16-42.el7, but none of the providers can be installed. package php-cli-5.4.16-42.el7.x86_64 requires php-common(x86-64) = 5.4.16-42.el7, but none of the providers can be installed. package php-mysql-5.4.16-42.el7.x86_64 requires php-pdo(x86-64) = 5.4.16-42.el7, but none of the providers can be installed. package mariadb-devel-1:5.5.56-2.el7.x86_64 requires mariadb-libs(x86-64) = 1:5.5.56-2.el7, but none of the providers can be installed. package php-imap-5.4.16-7.el7.x86_64 requires php(api) = 20100412-64, but none of the providers can be installed

apart from that when i am trying installing virtualmin it is installing php 7 why so?

It’s going to be very difficult to get a good installation of Virtualmin if you’ve got third party packages installed that conflict with the ones Virtualmin expects. You can usually install third party packages after installation of Virtualmin without major changes, but the installation really needs to start on a fresh install of your chosen OS.

So, start from a fresh OS. Install Virtualmin. Then install your preferred packages, if you need some feature not provided by the OS standard packages. Then you probably need to alter configuration in the relevant Webmin module and maybe in Virtualmin so it knows how to find the new package configuration files and binaries.

apart from that when i am trying installing virtualmin it is installing php 7 why so?

Because it’s supposed to. :wink:

Lots of people want PHP7, and it is provided by the SCL repositories, so we enable and install PHP7 by default on CentOS 7. You don’t have to use PHP7; there’s support for both PHP5 and PHP7 in Virtualmin, and you can choose which version is used for mod_fcgid (and php-fpm should use the system standard version by default, which woul be PHP5 on CentOS 7).