Skip to Content

Blog dr. Salim Mulyana

Dokter, Opreker

Cara Instalasi LAMP Stack (Linux, Apache, Mariadb, PHP) di Fedora 30

Be First!
by Juni 21, 2019 Uncategorized
  1. Lakukan update pada sistem Fedora 30

sudo dnf -y update

2. Set SE Linux ke mode permissive

sudo setenforce 0

sudo sed -i ‘s/^SELINUX=.*/SELINUX=permissive/g’ /etc/selinux/config

3. Install Apache dan setting agar Apache bisa berjalan tiap kali komputer booting

sudo dnf -y install httpd

sudo systemctl start httpd

sudo systemctl enable httpd

4. Atur firewalld agar mengizinkan service Apache

sudo firewall-cmd –add-service={http,https} –permanent

sudo firewall-cmd –reload

5. Install php

sudo dnf -y install php php-cli php-php-gettext php-mbstring php-mcrypt php-mysqlnd php-pear php-curl php-gd php-xml php-bcmath php-zip php-fpm php-mysqlnd php-devel php-json

6. Instalasi Mariadb dan setting supaya bisa berjalan saat booting

sudo dnf install mariadb-server

sudo systemctl start mariadb

sudo systemctl enable mariadb

7. Setting password Mariadb
mysql_secure_installation

8. Setting supaya firewalld bisa mengizinkan service Mariadb

sudo firewall-cmd –add-service=mysql –permanent

sudo firewall-cmd –reload

9. Restart Service Apache2
sudo systemctl reload httpd

Referensi

https://computingforgeeks.com/how-to-install-lamp-stack-on-fedora/

Previous
Next

Leave a Reply

Your email address will not be published. Required fields are marked *

*