I have a VDS server, there is an ISPmanager panel on it, Joomla! . When I put something with Joomla itself ! then the owner becomes apache . Why is that? Help me to understand. How to fix this problem?
1 answer
You probably have Apache processes running from under the Apache user, and PHP is connected as a module, i.e. performed inside the process. So when you create files from PHP, the Apache user becomes the owner.
It is better not to deal with this, but to include in the Apache group of the user from which you need access to the files. Permissions for files and folders should be configured in such a way that users from the Apache group have access to them: 0664 for files and 0775 for folders. The fastest way to achieve this is by setting umask to 002.
- and how to do it through the ISP panel? - Anatoly
|
apacheand enterumask 002in/etc/apache2/envvars. - user194374 2:47 pm