How to secure nginx +php using fastcgi

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
Pietka
Forum Newbie
Posts: 1
Joined: Sun Aug 24, 2014 12:41 pm

How to secure nginx +php using fastcgi

Post by Pietka »

Hello I would like to know if I have many domains on one server how to secure the domains so if one will be hacked the attacker won't have access to others. What is the best practise with that chroot or what? I'm using debian stable + nginx + php-fastcgi.
for example:
let's say that somebody exploited site1 thought some kind of PHP bug and he injected shell script and there is also site2,site3 on my webserver I want to protect site2,site3 from being hacked as well , I'm sure there is a way to do that I'm not sure which one should I pick.
Post Reply