Ad Widget

Collapse

Zabbix + Apache virtual host + suexec

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • setevoy
    Junior Member
    • Oct 2013
    • 4

    #1

    Zabbix + Apache virtual host + suexec

    Hi.

    I have Apache configured with `mod_fcgid` and suEXEC.

    When I'm trying to start it with `VirtualHost` config:

    Code:
    <VirtualHost 127.0.0.1:8080>
      DocumentRoot /usr/share/zabbix/
      ServerName zabbix.some.org.ua
      ServerAlias www.zabbix.some.org.ua
      CustomLog /var/log/httpd/zabbix.some.org.ua-access.log combined
      ErrorLog /var/log/httpd/zabbix.some.org.ua-error.log
    
      <IfModule mod_fcgid.c>
        SuexecUserGroup zabbix zabbix
        <Directory /usr/share/zabbix/>
          Options +ExecCGI
          AllowOverride All
          AddHandler fcgid-script .php
          FCGIWrapper /var/www/php-cgi/zabbix/zabbix.some.org.ua/php.cgi .php
          Order allow,deny
          Allow from all
        </Directory>
      </IfModule>
    </VirtualHost>
    I got error in suEXEC log:

    Code:
    [2014-09-15 14:22:42]: uid: (494/zabbix) gid: (494/zabbix) cmd: php.cgi
    [2014-09-15 14:22:42]: cannot run as forbidden uid (494/php.cgi)
    Because `zabbix` user `UID` less than `AP_GID_MIN` suEXEC option.

    What is correct way to fix it? Change `UID/GID` for `zabbix`?
    Change suEXEC `AP_GID_MIN/AP_UID_MIN`?
  • setevoy
    Junior Member
    • Oct 2013
    • 4

    #2
    Fixed - changed zabbix user GID.

    Comment

    Working...