[How To] Setup Cherokee with PHP5 FPM

In this “how to” we will see how to setup cherokee on Ubuntu with PHP5-FPM (FastCGI Process Manager). Although the cherokee CookBook claims that “If PHP-fpm binaries are found, those will be prioritized over the regular binaries.”  it turns out that the latest stable version of cherokee in Launchpad gives errors while enabling it. So here is the work around.

  1. Add the cherokee PPA and install cherokee
    1. add-apt-repository ppa:cherokee-webserver
    2. apt-get update
    3. apt-get install cherokee
  2. Add PHP5-FPM PPA, install it and start it
    1. add-apt-repository ppa:brianmercer/php
    2. apt-get install php5-fpm
    3. service php5-fpm start
  3. Start cherokee admin
    1. cherokee-admin -b

    and open http://<your-ip-address>:9090/ in your browser and use the “One-time Password”
  4. Inside the control panel click on “Sources” and click on “+” (Add new information Source) and fill in the connection field with (PHP5-FPM Service port)

  5. Next, go to “vServers” and click on “Behaviour” tab for the default vServer. Click on “Rule Management”

    Go to the “+”(Add Behavior Rule) and click on Manual
  6. Go to the “Handler” tab and select “FastCGI” as the Handler

    Scroll down to the “FastCGI Specific” section and select the “Balancer” as “Round Robin”

    Select the “Application Server” as php
  7. Save and gracefully restart to see the changes.

    Test it with phpinfo();

If everything goes OK, you should have a fully functional PHP setup ready on Cherokee.

This entry was posted in How Tos and tagged , , , , , , , , , , . Bookmark the permalink.

7 Responses to [How To] Setup Cherokee with PHP5 FPM

  1. Pingback: Tweets that mention [How To] Setup Cherokee with PHP5 FPM | TechTatva -- Topsy.com

  2. Pingback: TechTatva.com: [How To] Setup Cherokee with PHP5 FPM | Development Blog With Code Updates : Developercast.com

  3. Pingback: TechTatva.com: [How To] Setup Cherokee with PHP5 FPM | PHP

Leave a Reply

Your email address will not be published. Required fields are marked *