Posts

Showing posts with the label CentOS

Install Virtualmin with MariaDB 10.3 + php 7.3 on CentOS 7

# Version: 3
# Date: Tue Jun 18 22:43:39 PDT 2019

cat <<EOF > /etc/yum.repos.d/mariadb.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOF
yum -y install MariaDB-client.x86_64  MariaDB-server.x86_64
service mariadb start
/usr/bin/mysql_secure_installation

yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php56
yum-config-manager --enable remi-php73

# default webmin installation will install php 7.3 as per our enabled remi repo
# if you need php 5.6 install it with below command
yum install php56.x86_64 php56-php.x86_64 php56-php-bcmath.x86_64 php56-php-cli.x86_64 php56-php-common.x86_64 php56-php-fpm.x86_64 php56-php-gd.x86_64 php56-php-imap.x86_64 php56-php-intl.x86_64 php56-php-mbstring.x86_64 php56-php-mcrypt.x86_64 php56-php-mysqlnd.x86_64 php56-php-opcache.x86_64 php56-php-pdo.x86_64 php56-php-tidy.x86_64 php56-php-xml.x86_64 php56-php-xmlrp…

Install Zabbix 4.0, Latest Nginx, Latest PHP, Latest MariaDB on CnetOS 7

# Hello,
# Date Wed Jun 12 08:16:24 PDT 2019
# Version 3
# VARS
# SERVER_IP= IP of Server
# ZBPASSWORD= MySQL Zabbix User Password
# below commands must be executed as root . so I wont use sudo for the sake of portability .

# 1 - Installing Zabbix, MySQL (MariaDB), Nginx,  from repos

# 1A - Zabbix 4.0 LTS

#>>>>>>>> BEGIN of Blind copy/paste
rpm -Uvh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm
yum clean all  -y

yum install epel-release -y
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm -y
yum install -y yum-utils
yum-config-manager --disable remi-php54
yum-config-manager --enable remi-php73

# below command will install all zabbix requirments including php and apache (apache will be disabled later)
yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent php-fpm php-opcache curl

cat <<EOF > /etc/yum.repos.d/mariadb.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/cento…