inflearn logo

Building, Operating, and Securing Web Servers with Rocky Linux 9 — Hands-On Practice with DNS, Apache, and AWS EC2

A Linux web server course with step-by-step hands-on practice, covering everything from building DNS and Apache web servers on Rocky Linux 9 to integrating APM, Tomcat/JSP, and Java Spring; deploying web services on AWS EC2; and securing Apache, PHP, and MariaDB, along with SSL/TLS and ModSecurity.

(5.0) 1 reviews

59 learners

Level Basic

Course period Unlimited

WordPress
WordPress
Linux
Linux
AWS
AWS
apm
apm
apache-tomcat
apache-tomcat
WordPress
WordPress
Linux
Linux
AWS
AWS
apm
apm
apache-tomcat
apache-tomcat

What you will gain after the course

  • Building a DNS and Apache Web Server on Rocky Linux 9

  • APM Web Service Environment Configuration

  • Gnuboard and WordPress installation and integration

  • Building an EC2-Based Web Server in an AWS Cloud Environment

  • Operational Security Configuration Based on SSL/TLS and ModSecurity

Learn Web Server Setup, Operation, and Security with Rocky Linux 9: Hands-On Practice with DNS, Apache, and AWS EC2

A Linux web server course featuring step-by-step hands-on practice, from building a DNS and Apache web server on Rocky Linux 9 to integrating APM, Tomcat/JSP, and Java Spring; setting up a web service on AWS EC2; and securing Apache, PHP, and MariaDB operations with SSL/TLS and ModSecurity.

While studying Linux servers, you may have learned each technology individually, but

  • How are DNS and web servers actually connected?

  • How do Apache, PHP, and MariaDB work together?

  • How do you build a Tomcat-based JSP service?

  • How do you integrate a Java Spring application with Apache?

  • Can you apply what you learned on a local server to AWS EC2 as well?

  • What security settings should you configure during the operations phase after building a web server?

You may have questions like these.

In this course, you will build a server hands-on in a Rocky Linux 9 environment and learn about web service infrastructure, progressing from DNS → Apache → APM → Tomcat/JSP → Java Spring.

We go beyond this and extend into the AWS cloud environment, practicing everything from creating an EC2 instance → connecting via SSH → building an APM web server → installing Gnuboard5 and WordPress.

Finally, we cover the latest security vulnerabilities and updates, PHP and MariaDB security, SSL/TLS and HTTPS, logs, and ModSecurity—everything you need to run a real-world web server.

Rather than simply following along by entering commands, this hands-on course lets you see for yourself what role each service plays and how they connect to one another.

Recommended for these people

For those who are just getting started with building Linux servers

Recommended for those who know basic Linux commands but aren’t sure how to set up real server services.

You can learn the fundamentals of setting up and operating a server by installing and configuring one yourself in a Rocky Linux 9 environment.

For anyone who wants to properly understand DNS and the Apache web server.

You’ll get hands-on practice with everything from basic DNS concepts and server setup to registering multiple domains, performing forward and reverse lookups, and connecting to an Apache web server.

Rather than learning DNS and Apache separately, you’ll see how a domain connects to an actual web service.

Those who want to build an APM web server themselves

Install Apache, PHP, and MariaDB separately, then integrate them to build a real APM web service environment.

We go beyond simply displaying the Apache page and examine how PHP connects to the database.

Those who want to gain experience with Tomcat/JSP and Java Spring service architectures

We cover not only the PHP environment, but also JSP web services based on Apache Tomcat and Java Spring-based web applications.

Through hands-on exercises, you can understand the respective roles of web servers, WAS, applications, and databases.

For those who want to try setting up a web server on AWS EC2

Expand your web server setup experience from local virtual machines to the AWS cloud.

Learn how to sign up for AWS and set up MFA, create EC2 instances, configure security groups, and connect via SSH public key authentication, then build APM web servers in Amazon Linux, Rocky Linux 9, and Ubuntu Server environments.

You’ll also practice installing Gnuboard 5 and WordPress directly on aws-ec2.

For those who want to learn how to secure a web server after setting it up

It is just as important to operate a web server securely as it is to build one.

We will review the latest security vulnerabilities and how to respond to updates, and learn the security configurations and checks needed in real-world production environments using PHP, MariaDB, SSL/TLS, HTTPS, logs, ModSecurity, and more.

Features of This Course

1. Learn the entire flow, from DNS to web applications.

Rather than learning each server technology separately, you’ll learn how they connect as a unified web service infrastructure.

User → DNS → Apache → PHP / JSP / Java Spring → Database

Register multiple domains in DNS and connect them to the Apache web server, then gradually expand to services based on PHP, JSP, and Java Spring.


2. A hands-on course focused on building things yourself and verifying the results

Servers are difficult to learn through theory alone.

Build servers one by one by running commands directly on a Rocky Linux 9 virtual machine.

Installation → Configuration → Service Launch → Firewall Configuration → Connection Testing → Log Review → Troubleshooting

By repeating the process, you’ll learn the workflow of real-world server administration.


3. Build an APM Web Service Environment Yourself

Set up an APM environment by integrating Apache, PHP, and MariaDB.

You’ll go beyond installing each program and see how a PHP application connects to MariaDB to deliver a dynamic web service.

Apache → PHP → MariaDB

You can understand the role of each component and how they are connected.


4. Building a Tomcat-Based JSP Web Service

Install Tomcat, a Java-based web application server, and deploy a JSP application.

Explore the structure and role of Apache Tomcat, learn the difference between a web server and a WAS while connecting a JSP web application to a database, and get hands-on practice connecting JSP to Oracle DBMS.


5. Integrating Apache with a Java Spring Application

After running an application built with Java Spring, we practice using the Apache web server’s Reverse Proxy to forward external requests to the Spring application.

Confirm that Apache can also function as a Reverse Proxy, forwarding requests to an internal application server rather than serving only static content.

※ The course does not cover developing Java Spring applications or explaining Spring source code.


After configuring the DNS server, check the status of the named service and its process.

Practice configuring Tomcat Manager and deploying a JSP web application.

Apache Web Server Architecture and Request Processing Flow

6. Expanding Web Server Deployment to the AWS EC2 Environment

Extend the web server deployment skills learned in the local VMware environment to the AWS cloud.

We do not build a DNS server on AWS.

Creating an AWS EC2 instance and configuring a Linux web server environment is at the heart of the AWS hands-on exercises.

Starting with an introduction to AWS Cloud, we proceed step by step through creating an account, configuring MFA security, creating an EC2 instance, setting up security groups, and connecting via SSH public key.

Next, you’ll build an APM web server using the following operating systems.

  • Amazon Linux

  • Rocky Linux 9

  • Ubuntu Server

Finally, you’ll install GNUboard5 and WordPress in an AWS EC2 environment and go through the process of serving actual web applications.


7. Beyond Setup: Securing Web Server Operations

Installing and serving a web server does not mean that server operations are complete.

New vulnerabilities may be discovered in web servers in operation, so ongoing security management is needed for each component, including Apache, PHP, and MariaDB.

In the course, we’ll review the latest security vulnerabilities and update response methods as of November 2026 and learn about the following security areas.

  • Reviewing the Latest Security Vulnerabilities and Responding to Updates

  • PHP Operational Security Configuration and Auditing

  • MariaDB operational security configuration and inspection

  • Generating an SSL/TLS certificate

  • Applying HTTPS

  • Web Server Log Review

  • Enhancing Web Server Security with ModSecurity

You'll learn not just how to apply security settings, but also why they're needed and how to verify them.

What You’ll Learn

1. Preparing the Server Lab Environment

Before building the server, we’ll prepare the complete lab environment.

  • Basic Concepts of Servers and Data Centers

  • Understanding Virtualization Environments

  • Setting Up a VMware-Based Lab Environment

  • Installing Rocky Linux 9

  • Network Environment Configuration

  • Configuring the IP Address and Hostname

  • Server Updates and Basic Environment Configuration


2. Building a DNS Server

Build a real DNS server using BIND.

  • Concepts and Role of DNS

  • DNS Resolution Process

  • Primary / Secondary DNS Server

  • BIND Installation and Service Management

  • /etc/named.conf configuration

  • Creating a Zone File

  • A, NS, MX, and PTR records

  • Forward and Reverse DNS

  • Registering multiple domains

  • DNS queries using nslookup

  • DNS queries using dig

  • Connecting the DNS Server to the Apache Web Server


3. Building an Apache Web Server

Install Apache HTTP Server on Rocky Linux 9 and set up an actual web service.

Rather than simply installing the package, we’ll directly examine and modify Apache’s key configuration files and directives.

  • Concepts and Structure of the Apache Web Server

  • Install the httpd package

  • Managing the Apache Service

  • httpd.conf structure

  • ServerRoot

  • DocumentRoot

  • Listen

  • Directory

  • DirectoryIndex

  • Options

  • AllowOverride

  • Require

  • Apache Process Architecture

  • Web Content and Permissions

  • Access Log / Error Log

  • Check the configuration file syntax

  • Restart / Reload

  • VirtualHost

  • Web Service Using Multiple Domains


4. Building an APM Web Service

Configure a dynamic web service by integrating Apache, PHP, and MariaDB.

  • Understanding the APM Environment

  • Integrating Apache and PHP

  • Installing and Configuring PHP

  • MariaDB Installation and Configuration

  • Create a database

  • Create a Database User

  • Integrating PHP with MariaDB

  • Running a Web Application

  • Understanding the Apache → PHP → MariaDB Service Architecture


5. Building a Tomcat-Based JSP Web Service

Build a Java-based web service using Tomcat.

  • Differences Between a Web Server and a WAS

  • Configure the Java Runtime Environment

  • Install Tomcat

  • Run the Tomcat service

  • Deploying a JSP Application

  • Tomcat Manager Configuration

  • Deploying a WAR File

  • Building a JSP Web Service

  • Integrating JSP with Oracle DBMS


6. Configuring Web Service Infrastructure

Connect the DNS, Apache, APM, Tomcat, and database technologies you’ve learned so far to build a real-world web service infrastructure.

  • Understanding the Configuration of a Web Service Infrastructure Based on DNS and Apache

  • Register multiple domains on the primary DNS server

  • Register multiple domains on the secondary DNS server

  • Building an APM web service and a Tomcat-based JSP service

  • JSP and Oracle DBMS integration

  • Apache Virtual Host Configuration

  • Integrating an Apache Reverse Proxy with a Java Spring Application

Some advanced exercises will be updated in stages.


7. Building a Web Server in the AWS Cloud Environment

We’ll extend the existing local server exercises to an AWS EC2 environment.

AWS Basic Environment

  • Introduction to the AWS Cloud

  • Sign up for AWS

  • Understand the Latest AWS Sign-Up Process

  • Set Up MFA for Security Credentials

  • Creating an EC2 Instance

  • Configure EC2 Security Groups and Access Environment

  • Connecting to EC2 Using an SSH Public Key

Setting Up an AWS EC2 Web Server

  • Build an APM Web Server on Amazon Linux

  • Building an APM Web Server on Rocky Linux 9

  • Build an APM Web Server on Ubuntu Server

  • Install Gnuboard 5 on EC2

  • Install WordPress on EC2

AWS hands-on exercises do not cover setting up a DNS server. Instead, they focus on building EC2-based Linux web servers and web applications.

※ Some AWS hands-on lessons are currently being edited and will be updated sequentially.


8. Apache, PHP, and MariaDB Security Configuration and Checks for Production Operations

After setting up a web server, you’ll learn the basic security configurations and checks needed for real-world operations.

Responding to the Latest Security Vulnerabilities and Updates

Learn why you need to continuously check security advisories and updates while operating a web server.

Covers basic methods for checking newly announced vulnerabilities and the versions of packages in use, then deciding whether to update based on the server environment.

PHP Operational Security

We review the key security settings to check in a PHP production environment and inspect the actual server configuration.

MariaDB Operations Security

Review the account, access, and database security settings that need to be checked when operating a MariaDB server.

SSL/TLS and HTTPS

Practice generating an SSL/TLS certificate and applying it to the Apache web server to secure HTTP services with HTTPS.

Logs and ModSecurity

Practice checking web server logs and strengthening web server security using ModSecurity.


Additional Practice - Using Various Web Services

After learning how to set up a basic server, these additional hands-on exercises let you try out a variety of web applications and management tools.

  • Install Gnuboard 5

  • Installing WordPress

  • Installing Oracle SQL Developer

※ Some additional hands-on lessons are currently being edited and will be updated gradually.


After completing the course

After completing all the lessons, you will be able to perform the following tasks yourself.

  • Configuring a Rocky Linux 9 Server Environment

  • Set Up Primary/Secondary DNS Servers

  • Register multiple domains and perform DNS queries

  • Building and Operating an Apache Web Server

  • Understanding Apache’s Main Configuration Files

  • APM Web Service Environment Setup

  • Integrating PHP with MariaDB

  • Building a Tomcat-Based JSP Web Service

  • Integrating JSP with Oracle DBMS

  • Apache VirtualHost Configuration

  • Configuring Apache Reverse Proxy

  • Integrating a Java Spring application with Apache

  • AWS account and MFA security settings

  • Create an AWS EC2 Instance

  • EC2 Security Group Configuration

  • SSH Public Key-Based EC2 Access

  • Building an APM Web Server on Amazon Linux

  • Building an APM Web Server on Rocky Linux 9 EC2

  • Set Up an APM Web Server on Ubuntu Server EC2

  • Installing GNUBoard 5 and WordPress on EC2

  • PHP Operational Security Configuration Check

  • Review MariaDB Operational Security Settings

  • Applying an SSL/TLS Certificate and HTTPS

  • Checking web server logs

  • Enhancing Web Server Security with ModSecurity

  • Understand basic methods for addressing security vulnerabilities and updates while operating a web server.

The goal is not simply to memorize commands, but to understand the entire process of building a server → connecting services → expanding to a cloud environment → applying operational security.

Notes Before Taking the Course

  • Basic experience using Linux commands and an understanding of the terminal environment will help with learning.

  • It helps to be familiar with basic web concepts such as HTTP, domains, and IP addresses.

  • It’s helpful to have experience editing configuration files using text editors such as vi and vim.

  • PHP, JSP, and Java Spring practice applications are provided, but the course does not include developing the application source code yourself.

  • We practice integrating Apache Reverse Proxy using an application built with Java Spring, but this course does not cover Spring programming itself.

  • In AWS, we will not build a DNS server; instead, the hands-on exercises focus on setting up an EC2-based web server and web application.

  • The AWS sign-up page and service policies may differ from what is shown in the course due to changes in AWS policies.

  • Depending on the practice environment or package versions, some content shown in the course and in the provided PDF documents may differ from the actual environment.

  • Some lectures on AWS, web service scaling and operations, and security are currently being edited and will be updated gradually.

By the end of the course

Technologies that initially seemed separate come together as one server operations workflow.

Rocky Linux 9 Server Environment Setup
→ DNS Server Setup
→ Apache Web Server Setup
→ APM Web Service
→ Tomcat/JSP
→ Java Spring Integration
→ AWS EC2 Web Server Setup
→ APM Operations Security

First, you'll understand the fundamentals of servers in a local virtualization environment, then extend that knowledge to AWS cloud environments and learn the security practices required for real-world operations.

Experience the process of building, connecting, and testing everything yourself, expanding it to the cloud, and operating it securely.

This is the core of this course.

Practice Environment

  • The exercises are based on Rocky Linux 9.

  • We recommend using a PC that can run VMware virtual machines.

  • For AWS exercises, we also use Amazon Linux, Rocky Linux 9, and Ubuntu Server environments.

  • An internet connection is required for the hands-on exercises.

Learning materials

  • We provide the configuration files, commands, and hands-on examples used in the course.

  • The necessary material is explained step by step in the lecture videos.

  • A PDF course guide of approximately 250 pages is provided.

  • As the course is updated, some content in the PDF course materials may also be added or revised.

Prerequisites and Notes

  • Knowing basic Linux commands will be helpful for your studies.

  • The installation and setup process is covered step by step so even beginners can follow along.

  • No prior knowledge of AWS or web server security is required.

  • PHP, JSP, and Java Spring practice applications are provided, but the source code development process is not covered in the course.

  • In AWS, rather than setting up a DNS server, the hands-on exercises focus on building an EC2-based web server and web application.

  • Depending on the practice environment or package versions, some content in the course videos and the provided PDF documents may differ from the actual environment.

  • AWS screens and policies may change, so what you see may differ slightly from the lecture.

  • Some lessons on AWS EC2 and web server operations security are currently being edited and will be updated in stages.

Recommended for
these people

Who is this course right for?

  • Beginner developers and system administrators looking to set up a web server on Linux for the first time.

  • Learners who want to understand how DNS, Apache, PHP, and MariaDB work together through hands-on practice

  • Learners who want to run their own websites built on Gnuboard or WordPress

  • A learner who wants to build a web server directly on AWS EC2

  • Learners who want to learn about web server security operations, such as SSL/TLS and ModSecurity.

Need to know before starting?

  • Basic experience using Linux commands and an understanding of the terminal environment would be helpful.

  • Understanding basic web concepts such as HTTP, domains, and IP addresses will help with learning.

  • Experience editing configuration files with text editors such as vi or vim is preferred.

  • No prior knowledge of AWS or security is required; the course explains everything you need step by step.

Hello
This is linuxmasternet

Career Verified

384

Learners

6

Reviews

8

Answers

5.0

Rating

3

Courses

Instructor Introduction

Since first encountering Linux in 1995, I have accumulated over 30 years of experience in Linux server operations, networking, and information security.

Since 2001, I have accumulated more than 25 years of hands-on and teaching experience in Linux and information security, and based on this experience, I strive to provide practical, hands-on training that can be applied not only to theory but also to real-world server deployment and operational environments.


[Key Career History]

  • CEO of Linux Master Net

  • Information Security Major

  • Received the 2014 Commendation from the President of the Korea Internet & Security Agency (KISA)

  • Conducted penetration testing and security vulnerability assessments of information systems for the Supreme Prosecutors’ Office, Allianz Life, Dongbu Securities, and others.

  • Former Expert Committee Member for Linux Master at the Korea Association for ICT Promotion

  • (Former) Mentor for the Student Union of Information Security (SUA)

  • (Former) Head of the Education Team, Korea Hacking Security Association

[Teaching Experience]

  • Started teaching in the fields of Linux and information security in 2001

  • As of 2026, conducting lectures on Linux servers, networks, and information security.

  • Korea Internet & Security Agency (KISA) – Special Lecture on Linux Security

  • Professional training institutions – Information security lectures at Seoul Hyundai Vocational School, KH Information Education Center, Korea IT Academy, and others

  • Universities and educational institutions – Information Security special lectures at Korea Information and Communications Polytechnic College, Chonnam National University, Woosuk University, Hoseo University, and more

  • Public institutions – Special lectures on personal information protection and information security for the Ministry of Culture, Sports and Tourism, the National Information Society Agency, the Navy, the National Election Commission, and others

  • Businesses and medical institutions – Special lectures on personal information protection and information security for POSCO A&C, Ilsan Paik Hospital, Hyundai Department Store, Hyundai HDS, and others

※ Conducted lectures on personal information protection and information security at approximately 30 organizations, including the institutions listed above, as well as public institutions, corporations, and medical institutions


[Educational Philosophy]

I believe that with Linux and information security, the process of building, configuring, and troubleshooting servers firsthand is more important than simply memorizing commands and concepts.

Errors and failures that occur during the learning process are not merely mistakes, but valuable opportunities to learn and grow. At times, you may go through countless trials and errors and what is commonly called 'trial and error,' but I believe that the insights gained by analyzing the causes and solving problems on your own are the most reliable form of learning.

Even content that initially seems difficult and incomprehensible becomes fully your own knowledge and skill if you don’t give up, but repeatedly practice and work through it.

Going beyond simply following along to develop the ability to think independently and solve problems—this is the direction of education I pursue.

I will provide practice-oriented lectures so that you can continue challenging yourselves without giving up, even through difficult parts of the course, and confidently apply what you have learned in real-world environments.


Thank you.

More

Curriculum

All

68 lectures ∙ (16hr 5min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

All

1 reviews

5.0

1 reviews

  • zino8925님의 프로필 이미지
    zino8925

    Reviews 7

    ∙

    Average Rating 5.0

    5

    60% enrolled

    • linuxmasternet
      Instructor

      Thank you sincerely for leaving a 5-star rating. ^^ I hope this course helped you learn the process of building and configuring a DNS server and Apache web server in a Rocky Linux 9 environment. I’m very glad if practicing and learning step by step, from DNS configuration to Apache web server setup, was helpful to you. I’m grateful that you took the course, and your positive review gives me great encouragement. I hope what you learned will be helpful as you continue studying Linux and servers. Thank you. ^^

linuxmasternet's other courses

Check out other courses by the instructor!

Similar courses

Explore other courses in the same field!

25% off for new members

$16.40

25%

$26.40