- Install Apache
$ sudo yum update -y
$ sudo yum install httpd
$ sudo systemctl start httpd.service
$ sudo systemctl enable httpd.service - Install MariaDB 10.4.32
Buat file /etc/yum.repos.d/mariadb.repo, isi dengan script
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/rhel7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
$ sudo yum install MariaDB-server MariaDB-client
$ sudo systemctl start mysql.service
$ sudo systemctl enable mysql.service
$ sudo mysql_secure_installation
Check instalasi MySQL
$ sudo mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 593
Server version: 10.4.32-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. - Install PHP 8.2
$ sudo yum update -y
$ sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
$ sudo yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
$ sudo yum-config-manager --enable remi-php82
$ sudo yum install php php-mysql php-gd php-json php-mbstring php-session php-xmlwriter php-filter php-spl php-zip
(Contoh install php dan extension yang diperlukan gd, mbstring dll)
Check Instalasi PHP
PHP 8.2.13 (cli) (built: Nov 21 2023 09:55:59) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.2.13, Copyright (c) Zend Technologies