Skip to content

Truelancer Blog

  • Post Project
  • Find Freelancers
  • Find Projects
  • Signup

How To Install and Configure Monit for Nginx and PHP-FPM

June 19, 2015 by Truelancer

About Monit

Monit is a helpful program that automatically monitors and manages server programs to ensure that they not only stay online consistently, but that the file size, checksum, or permissions are always correct. Additionally monit comes with a basic web interface through which all of the processes can be set up. This tutorial will cover the most basic setup and configuration.

Install Monit

Monit is easiest to install through apt-get:

sudo apt-get install monit

Once monit downloads, you can add programs and processes to the configuration file:

sudo nano /etc/monit/monitrc

Monit can be started up with a command that then keeps it running in the background

monit

Typing  monit status displays monit’s details

Configure Monit for NGINX and PHP-FPM

# NGINX
check process nginx with pidfile /var/run/nginx.pid
group webserver
start program = “/usr/sbin/service nginx start”
stop program = “/usr/sbin/service nginx stop”
if failed host localhost port 80 protocol http
and request “/humans.txt”
then restart

# PHP5-FPM
check process php5-fpm with pidfile /var/run/php5-fpm.pid
group webserver
start program = “/usr/sbin/service php5-fpm start”
stop program = “/usr/sbin/service php5-fpm stop”
if failed host localhost port 80 protocol http
and request ‘/ping’
then restart
depends on nginx

Once this is configured, monit should reload and reread the configuration file, and the web interface will be available:

monit reload

Hire Freelancer to configure your server. 
Must Read  How to become a Freelance Software Developer without going to College ?

Post navigation

Previous Post:

How to Hire Designers who can build Fantastic Designs

Next Post:

How Truelancer is Benefiting Freelancers in Bangladesh

Become a Freelancer

Popular Posts

  • Introducing Instant Hire – Re-Hiring Made Easy!
  • Payment withdrawal options on Truelancer
  • Workflow between Freelancer & Client. Workstream Step by Step Guide
  • How to withdraw money from your Truelancer Account
  • Send a Perfect Proposal for Projects on Truelancer

Recent Posts: Truelancer Blog

List of Freelance Sites to Start Freelancing

List of Freelance Sites to Start Freelancing

Freelancing Success: Graphic Designer with 5 Star Ratings!!

Freelancing Success: Graphic Designer with 5 Star Ratings!!

Freelancing Success: Meet Aditya Web and Android Developer from Bangalore

Freelancing Success: Meet Aditya Web and Android Developer from Bangalore

Freelancing Success: Meet Vishal Shah who earned $10000 in just 90 days!

Freelancing Success: Meet Vishal Shah who earned $10000 in just 90 days!

Prince from Kenya-Amazing Content Writer, who always get 5 Star Ratings

Prince from Kenya-Amazing Content Writer, who always get 5 Star Ratings

Categories

  • Academy
  • Achitect
  • Affiliate Marketing
  • Angel Investors
  • Announcements
  • Article Writing
  • Artificial Intelligence
  • Blogging
  • Book Release
  • ChatGPT
  • Content Marketing
  • Coworking Spaces
  • Crowdsourcing
  • Digital marketing
  • Digital Superstars
  • E-commerce
  • Email Marketing
  • Entrepreneurs
  • Entrepreneurship & Startup
  • Events
  • Featured Freelancers
  • Featured Stories
  • Freelance Jobs
  • Freelancer
  • Freelancer Report
  • Freelancer Tips
  • Freelancing
  • Graphic Design
  • Grok AI
  • Infographics
  • Interior Designer
  • Interview Questions
  • IT & Programming
  • Make Money Online
  • Mobile App Development
  • News
  • Online Jobs
  • Outsourcing
  • Payments
  • Payoneer & Truelancer
  • Pro Membership
  • Product Updae
  • Product Updates
  • Programmers
  • Project Management
  • Remote Team
  • Remote Work
  • Research & Analytics
  • SEO & SEM
  • SEO and Online Media
  • Small Business
  • Social Media & Marketing
  • Software Development
  • Startups
  • Startups
  • Superlancer
  • Translation
  • Trending Services
  • Truelancer General
  • Truelancer Offers
  • Tutorials
  • Uncategorized
  • Video Editing
  • Virtual Assistants
  • Web Development
  • Website Designing
  • Writing and Content
  • Yoga
  • Become a Freelancer
© 2025 Truelancer Blog | WordPress Theme by Superbthemes