====== Tutorial Install Apache PHP 8 Mariadb di Almalinux ======
Berikut ini adalah panduan menginstall apache php mariadb di linux almalinux
===== Install HTTPD =====
dnf install httpd httpd-tools
jalankan apache httpd
systemctl enable httpd
systemctl start httpd
systemctl status httpd
===== Install PHP =====
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
Melihat versi php
# dnf module list php
Last metadata expiration check: 2:45:14 ago on Tue 07 Mar 2023 03:39:53 AM UTC.
AlmaLinux 8 - AppStream
Name Stream Profiles Summary
php 7.2 [d] common [d], devel, minimal PHP scripting language
php 7.3 common [d], devel, minimal PHP scripting language
php 7.4 common [d], devel, minimal PHP scripting language
php 8.0 [e] common [d], devel, minimal PHP scripting language
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
install php
dnf module reset php
dnf module install php:8.0
lanjutkan
dnf install -y php php-mysqlnd php-dom php-simplexml php-xml php-xmlreader php-curl php-exif php-ftp php-gd php-iconv php-json php-mbstring php-posix php-sockets php-tokenizer
dan restart httpd
systemctl restart httpd
==== Install MariaDB ====
dnf install mariadb-server -y
jalankan
systemctl start mariadb
systemctl enable mariadb
systemctl status mariadb
jalankan secure installation untuk mensetting password mysql
mysql_secure_installation
jika tahapan telah anda lakukan semua maka proses tersebut harus telah selesai, selamat mencoba.