Added lamp installation
This commit is contained in:
parent
ea5b9688c4
commit
ad33a753f2
44
install-lamp.sh
Executable file
44
install-lamp.sh
Executable file
@ -0,0 +1,44 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -x
|
||||
|
||||
dnf install -y epel-release
|
||||
|
||||
crb enable
|
||||
|
||||
dnf install -y epel-release
|
||||
|
||||
dnf install -y atop htop iptstate conntrack-tools
|
||||
|
||||
dnf -y module reset php
|
||||
dnf -y module install php:8.2
|
||||
|
||||
dnf -y module reset mariadb
|
||||
dnf -y module install mariadb:10.11
|
||||
|
||||
dnf -y module reset ruby
|
||||
dnf -y module install ruby:3.1
|
||||
|
||||
dnf install -y $( cat lamp-packages.txt )
|
||||
|
||||
true | pecl install redis
|
||||
|
||||
cat <<EOF > /etc/php.d/99-redis.ini
|
||||
; Enable REDIS extension module
|
||||
extension=redis.so
|
||||
EOF
|
||||
|
||||
firewall-cmd --add-service=http
|
||||
firewall-cmd --add-service=https
|
||||
firewall-cmd --reload
|
||||
|
||||
systemctl restart httpd
|
||||
systemctl restart php-fpm
|
||||
|
||||
systemctl restart redis
|
||||
systemctl restart mariadb
|
||||
|
||||
systemctl enable httpd php-fpm redis mariadb
|
||||
|
||||
|
||||
set +x
|
21
lamp-packages.txt
Normal file
21
lamp-packages.txt
Normal file
@ -0,0 +1,21 @@
|
||||
httpd
|
||||
php-gd
|
||||
php-soap
|
||||
php-intl
|
||||
php-mysqlnd
|
||||
php-pdo
|
||||
php-pecl-zip
|
||||
php-fpm
|
||||
php-opcache
|
||||
php-curl
|
||||
php-zip
|
||||
php-xml
|
||||
php-pear
|
||||
php-devel
|
||||
redis
|
||||
wget
|
||||
curl
|
||||
jq
|
||||
mariadb-server
|
||||
mariadb
|
||||
|
Loading…
Reference in New Issue
Block a user