Before applying any changes to the configuration files of Nginx or PHP-FPM, it is advisable to test them for any errors to avoid breaking the server.
Nginx
The expected output should look like this
If the test is successful, you can safely restart the service with service nginx restart
PHP-FPM
The expected output should look like this
Similarly, if the test is successful, you can restart the service with service php{version}-fpm restart
, ex service php7.4-fpm restart