Eliezer Croitoru d7ec0d2317 1
2024-02-07 23:57:14 +02:00

34 lines
908 B
Bash

#!/usr/bin/env bash
# Disabling selinux
sed -i -e "s@^SELINUX=.*@SELINUX=disabled@g" /etc/selinux/config
grubby --update-kernel ALL --args selinux=0
setenforce 0
# Updating OS
dnf update -y
# Installing basic dependencies
dnf install -y epel-release
/usr/bin/crb enable
dnf install -y git wget curl bash-completion vim make
dnf module reset ruby mariadb php -y
dnf module enable ruby:3.1 mariadb:10.5 php:8.0 -y
dnf install -y httpd php php-fpm php-mysqlnd ruby ruby-devel rubygem-mysql2 rubygem-irb python3.11 python3.11-devel python3.11-pip
dnf install -y mariadb-server
dnf install -y podman htop tree
update-alternatives --set python3 /usr/bin/python3.11
python3 -m pip install --upgrade pip
systemctl start httpd mariadb podman php-fpm
systemctl enable httpd mariadb podman php-fpm
firewall-cmd --add-service=http --permanent
firewall-cmd --add-service=https --permanent
firewall-cmd --reload