How to Run Sites Securely with Apache and Php-fpm on Ubuntu 16.04 LTS | Linux Today

How to Run Sites Securely with Apache and Php-fpm on Ubuntu 16.04 LTS

Written By
AD
Anatoliy Dimitrov
Feb 15, 2018

A great security feature of Php FastCGI Process Manager (Php-fpm) is its ability to run Php scripts with different users. This in addition to its other merits such as performance and many fine grained options for tuning makes it the best choice for running Php sites. Before anything else, I must admit that Nginx with Php-fpm is preferred than Apache with Php-fpm for performance reasons mostly. There are fine articles such as this one explaining how to accomplish exactly the same as the current topic with Nginx and not with Apache. The setup for Php-fpm with Apache is similar but there are some Apache specifics which are important and on which the current article stresses.

AD

Anatoliy Dimitrov

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.