PHP-FPM/Nginx Security In Shared Hosting Environments (Debian/Ubuntu) | Linux Today

PHP-FPM/Nginx Security In Shared Hosting Environments (Debian/Ubuntu)

Written By
FT
Falko Timme
Sep 26, 2011

[ Thanks to Falko
Timme
for this link. ]

“If you want to use nginx and PHP-FPM for shared hosting
environments, you should make up your mind about security. In
Apache/PHP environments, you can use suExec and/or suPHP to make
PHP execute under individual user accounts instead of a system user
like www-data. There’s no such thing for PHP-FPM, but fortunately
PHP-FPM allows us to set up a “pool” for each web site that makes
PHP scripts execute as the user/group defined in that pool. This
gives you all the benefits of suPHP, and in addition to that you
don’t have any FTP or SCP transfer problems because PHP scripts
don’t need to be owned by a specific user/group to be executed as
the user/group defined in the pool. “


Complete Story

FT

Falko Timme

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.