Entradas

Mostrando entradas de febrero, 2023

How to monitor & automatically restart MySQL, Nginx, Apache etc. on your server

Imagen
 Thank to: https://superdevresources.com/ Managing server is not an easy job, specially if you have multiple softwares like MySQL, Nginx or Apache running on your servers. Downtime happens and running softwares get killed due to many reasons. In this post, I will share how I use  Monit  to constantly monitor programs running on my servers and automatically get them restarted when they go down. Monit also enables me to remotely watch the system status. About Monit Monit   is a small Open Source utility for managing and monitoring Unix systems. Monit conducts automatic maintenance and repair and can execute actions in error situations. Additionally, Monit has a built-in lightweight HTTP(S) interface you can use to browse the Monit server and check the status of all monitored services. From the web-interface you can start, stop and restart processes and disable or enable monitoring of services.   Monit Web Interface Installing and Configuring Monit on Ubuntu We can install monit by simply

How to Set up & Use NGINX as a Reverse Proxy

Imagen
 Thank to: https://phoenixnap.com/ What is a Reverse Proxy? A standard  proxy server  works on behalf of clients, often by providing privacy or filtering content. A reverse proxy works on behalf of a server, intercepting traffic and routing it to a separate server. There are several reasons you might want to install a reverse proxy. One of the main reasons is privacy. If you have multiple servers, a reverse proxy can help balance loads between servers and improve performance. As a reverse proxy provides a single point of contact for clients, it can centralize logging and report across multiple servers. Nginx can improve performance by serving static content quickly and passing dynamic content requests to Apache servers. This guide will help you install and configure an Nginx reverse proxy on your system. Prerequisites A Linux server with Apache, PHP, and a firewall Access to a root user with  sudo  access Linux command-line or terminal ( Ctrl – Alt – T  for Ubuntu,  Alt – F2  for CentO