The myth of safe permissions

I have noticed, that despite thousands of tutorials and blog posts about unix permissions, many people still don’t grasp the concept of it and think about permissions in the sense of qualitative numbers, where the lower is simply the better. I’ll be talking here specifically about permissions of a php web application, because most of misunderstandings I have encountered, come from this sphere.

Virtualhosts in local environement

Sometimes a single local domain “localhost” is not enough if we develop more projects. Usually we just use folders for different projects, but woldn’t local domains be better? Some php scripts are not made to run from a subfolder and have problems with that. Here is the solution.