Installing Nginx With PHP5 (And PHP-FPM) On CentOS 6.0 to run a CakePhp application.

First update your machine.

Install all development tools

Install MySQL

To install Php

Install some dependency applications for nginx

Download ngnix for installation

When the configuration process completes successfully, you will see the following output:

Issue more two commands to complete nginx setup.

Create an user named .ngnix.

Create a init script for nginx

Add the below lines to the files:

Give accurate permission to the init script and add it for automatic startup:

Install PHP-FPM :

Then edit nginx.conf to run a CakePhp application:

Append the below lines

The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

5 thoughts on “Installing Nginx With PHP5 (And PHP-FPM) On CentOS 6.0 to run a CakePhp application.

  1. I rarely leave a response, but i did some searching and wound up here Installing Nginx With
    PHP5 (And PHP-FPM) On CentOS 6.0 to run a CakePhp application.
    | Tapas Mishra. And I do have 2 questions for you if it’s allright. Is it just me or does it give the impression like some of these responses come across as if they are coming from brain dead visitors? 😛 And, if you are writing at additional places, I would like to keep up with anything fresh you have to post. Would you make a list of every one of all your community sites like your linkedin profile, Facebook page or twitter feed?

  2. It’s a pity you don’t have a donate button! I’d certainly donate to this fantastic blog! I guess for now i’ll settle for bookmarking and adding
    your RSS feed to my Google account. I look forward to brand
    new updates and will talk about this website with my Facebook group.
    Chat soon!

Leave a Reply