Install LAMPP AlmaLinux
Update System
sudo dnf update -y
sudo dnf upgrade -y
Install Web Server (Apache)
sudo dnf install httpd -y
Menjalankan dan mengaktifkan Web Server
sudo systemctl start httpd
sudo systemctl enable httpd
Membuka port http dan https
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload
Install Database Server
sudo dnf install mariadb-server -y
Menjalankan dan mengaktifkan Web Server
sudo systemctl start mariadb
sudo systemctl enable mariadb
Konfigurasi keamanan Database
sudo mysql_secure_installation
Dalam konfigurasinya silahkan sesuaikan seperti berikut:
Enter current password .... [lakukan enter saja]
Switch to unix_socket .... [pilih/tekan 'n' kemudian enter]
Change the root password... [pilih/tekan 'Y' kemudian enter dan isikan password baru untuk database]
Remove anonymous users?... [pilih/tekan 'Y' kemudian enter]
Disallow root login remotely... [pilih/tekan 'Y' kemudian enter]
Remove test database and access... [pilih/tekan 'Y' kemudian enter]
Reload privilege tables... [pilih/tekan 'Y' kemudian enter]
Install PHP dan PHP-FPM
sudo dnf install php php-fpm libapache2-mod-fcgid php-pdo php-gd
sudo systemctl restart httpd
Install PhpMyAdmin
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
sudo dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm
sudo dnf -y --enablerepo=remi install phpMyAdmin
Konfigurasi PhpMyAdmin
sudo vi /etc/httpd/conf.d/phpMyAdmin.conf
Cari baris berikut, dan sesuikan dengan script dibawah ini
AddDefaultCharset UTF-8
<IfModule mod_authz_core.c>
# Apache 2.4
Require ip 127.0.0.1 192.168.1.100-->IP Sesuaikan dengan IP Server541
</IfModule>
Require all granted