From the course: Open Source Firewalls

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Building the web server

Building the web server

- [Instructor] Let's start by building an Nginx web server. I've cloned the template so we've got a fresh Kali Purple server called web01 started up and ready to go. We'll need to install three systems: the Nginx web server, the MariaDB SQL server, and PHP. We can do that in one go with sudo apt install nginx php-mysql php-fpm mariadb-client mariadb-server and we'll need libnginx-mod-stream. Okay, that's done, so let's check the PHP version with php minus v and we're running PHP 8.2. Let's update the Nginx configuration to activate PHP processing. We'll do sudo nano/etc/nginx/sites-enabled/default. So we'll go down and add in index.php and in the commented out PHP configuration, we'll remove the comments like so. And because we're running not PHP 7.4 but 8.2, we'll change this to 8.2. Okay, we'll save that. We'll want to automatically start Nginx on a reboot. So let's enable and start the three servers, sudo systemctl enable nginx minus minus now for a restart, sudo systemctl enable…

Contents