Install Nginx on CentOS 8

Nginx Web Server

To install Nginx web server on CentOS 8, create repo vi /etc/yum.repos.d/nginx.repo Add [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1 Install nginx with dnf or yum dnf install nginx Open HTTP and HTTPS ports on firewall firewall-cmd –zone=public –permanent –add-service=http firewall-cmd –zone=public –permanent –add-service=https firewall-cmd –zone=public –permanent –add-service=ssh firewall-cmd –reload

Install Apache, MySQL, PHP (LAMP) Stack on CentOS 8

First disable SELinux by editing file vi /etc/selinux/config Find SELINUX=enforcing Replace with SELINUX=disabled Now restart the server. reboot Verify SELinux is disabled by running “sestatus” command. It should show disabled. Install basic tools Lets start by installing some basic tools like whois, curl, git etc.. dnf -y install wget curl telnet bind-utils net-tools git Configure … Read more