Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is PHP Safe Mode GID?

Tags:

php

unix

According to the PHP Safe Mode Docs on safe_mode_gid:

By default, Safe Mode does a UID compare check when opening files. If you want to relax this to a GID compare, then turn on safe_mode_gid. Whether to use UID (FALSE) or GID (TRUE) checking upon file access.

To a PHP script running on a web server, what is the difference between a UID (User Identifier) check and a GID (Group identifier) check?

like image 481
HoboBen Avatar asked Aug 11 '08 15:08

HoboBen


1 Answers

This will just allow you a little more flexibility in your web server setup. Using safe_mode_gid, you should be able to run individual PHP/httpd processes for each user on your system, but give each process the ability to read some shared files as long as they are all run as the same group (GID) and the shared files are owned by this group.

like image 120
pix0r Avatar answered Oct 21 '22 16:10

pix0r