Installing And Configuring Web Server

  1. Install required packages
  2. # dnf install httpd
    # dnf install php
    # dnf install php-common
    # dnf install php-cli
    # dnf install php-mysqlnd
    # dnf install php-gd
    # systemctl enable httpd - created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service

  3. Installing MariaDB
    1. yum install mysql-server mysql
    2. systemctl start mariadb
    3. systemctl enable mariadb
    4. systemctl status mariadb
    5. mysql
  4. Configure httpd
  5. Enable Remote Connection to HTTP Server
  6. List your active Firewalld zones:

    firewall-cmd --get-active-zones
    FedoraWorkstation
      interfaces: enp2s0 wlp3s0

    Add new rule to Firewalld:

    firewall-cmd --permanent --zone=FedoraWorkstation --add-service=http
    or
    firewall-cmd --permanent --zone=FedoraWorkstation --add-port=80/tcp

    Restart firewalld.service:

    systemctl restart firewalld.service