<\/span><\/h2>\n\n\n\nFirst, we\u2019re going to need to log into our server using SSH. You can do that by entering this command:<\/p>\n\n\n\n
ssh root@IP_Address -p Port_Number<\/pre>\n\n\n\nRemember to replace “root” with your username if you are not using the root user. Change “IP_Address” and “Port_Number” according to your server\u2019s IP address and SSH port number. The default SSH port number is 22.<\/p>\n\n\n\n
Once you are logged in, you should update all of your packages to their latest available versions.<\/p>\n\n\n\n
dnf update -y<\/pre>\n\n\n\nOnce the updates are completed, restart your system to apply the changes.<\/p>\n\n\n\n
<\/span>Step 2: Install Nginx and PHP<\/span><\/h2>\n\n\n\nFirst, install the Nginx webserver and PHP by running the following command:<\/p>\n\n\n\n
dnf install nginx php php-fpm php-cli -y<\/pre>\n\n\n\nOnce all packages are installed, start the Nginx and PHP-FPM services and enable them to start at boot with the following command:<\/p>\n\n\n\n
systemctl start nginx\nsystemctl enable nginx\nsystemctl start php-fpm\nsystemctl enable php-fpm<\/pre>\n\n\n\n