Website soft, write logs with diferent group webX:apache instead webX:clientX

Discussion in 'General' started by Abdelkarim Mateos, Sep 22, 2016.

  1. Abdelkarim Mateos

    Abdelkarim Mateos New Member

    On ISPConfig 3.1dev over Centos 7.2 with Apache + PHP-FPM get a problem.

    Magento write some logs with a wrong group

    Write file with apache group instead client1

    Code:
    ls -lisa /var/www/mydomain.es/web/var/log/
    total 14016
    41150121    0 drwxr-xr-x  4 web4 client1     132 sep 13 18:55 .
    102205481    4 drwxr-xr-x 12 web4 client1    4096 ago 29 10:35 ..
    101040387    4 drwxr-xr-x  3 web4 client1    4096 ago 29 11:10 antiguo
    1588887    0 drwxrwxr-x  2 web4 client1      54 sep  3 01:01 cron
    ---------
    41150158  416 -rw-r-----  1 web4 apache   424946 sep 22 11:40 exception.log
    41150154 5856 -rw-r-----  1 web4 apache  5989906 sep 13 17:56 exception.log.2
    ---------
    41150151 5568 -rw-r-----  1 web4 client1 5696806 sep  9 11:45 exception.log.bkp
    41150153  548 -rw-r-----  1 web4 client1  556874 sep 22 14:37 system.log
    41150146 1620 -rw-r-----  1 web4 client1 1651538 sep 22 13:45 zendesk.log
    Why?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Try to add a small php file with the content in this website:

    <?php
    touch('test.txt');
    ?>

    open it in a browser, then check which user and group owns the test.txt file which should have been added in the same directory.
     
  3. Abdelkarim Mateos

    Abdelkarim Mateos New Member

    well.

    I don't need put any file for get information..

    I see all files on this site get same problem.

    On virtual.vhost
    Code:
    SuexecUserGroup web4 client1
    ...
    AssignUserId web4 client1
    
    But on system create files with web4.apache
    Know I see problem, on file /etc/php-fpm.d/web4.conf
    Code:
    user = web4
    group = apache
    Reallly It's need group apache instead group client1

    Thanks.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, that's required and has no influence on accessing the files as you can always access them trough the user owner permissions anyway.
     

Share This Page