Clean install, no setup
php7.4, MariaDB 10.4, Virtualmin, Composer, Varnish, GIT
0) Update the OS
Install:
PHP
memcached
uploadprogress
dnf update -y dnf install epel-release -y dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm -y dnf module reset php -y dnf module enable php:remi-7.4 -y dnf install php php-cli php-common php-mcrypt -y dnf install memcached -y dnf install php74-php-pecl-uploadprogress -y
1) Additional packages:
Basic dnf packages
Varnish
Certbot
Pound
Composer
echo "==================================================================================" echo "Installing additional packages .." dnf -y makecache --timer dnf -y install drpm perl nano rsync make vim screen wget mlocate gcc pcre-devel nmap openssh-clients ImageMagick gcc-c++ bzip2 net-tools perl-LWP-Protocol-https patch lsof git bash-completion at e2fsprogs sudo libxml2-devel htop pam-devel perl-Authen-PAM echo "==================================================================================" echo "Installing Varnish, Pound, Certbot" dnf install @varnish -y dnf -y install certbot python3-certbot-apache dnf --enablerepo=epel -y install Pound if [ ! -f /usr/local/bin/composer ]; then echo "==================================================================================" echo "Installing Composer .." cd /usr/src curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer echo "..done" fi
2) Install Virtualmin
dnf install perl-open.noarch -y dnf -y --enablerepo=PowerTools install perl-IO-Tty if [ ! -d /etc/webmin ]; then echo "==================================================================================" echo "Installing control panel .." cd /usr/src wget http://software.virtualmin.com/gpl/scripts/install.sh chmod 755 install.sh # Per https://www.virtualmin.com/node/53190 DISABLE_SCL=1 export DISABLE_SCL ./install.sh -y echo ".. done" fi
3) Upgrade MariaDB to 10.4
#MariaDB 10.4 dnf remove mariadb* -y tee /etc/yum.repos.d/mariadb.repo<<EOF [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.4/rhel8-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 EOF dnf makecache -y dnf install boost-program-options -y dnf install perl-DBI -y dnf install MariaDB-server MariaDB-client --disablerepo=AppStream -y systemctl enable --now mariadb
- Log in to post comments