<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>45271</bug_id>
          
          <creation_ts>2023-02-14 11:37:08 +0300</creation_ts>
          <short_desc>Некорректные права сокет файла</short_desc>
          <delta_ts>2023-02-15 09:51:07 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>php8.2-fpm-fcgi</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>221648</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2023-02-14 11:37:08 +0300</bug_when>
    <thetext>Версия пакета:
php8.2-fpm-fcgi-8.2.2-alt1

Файл сокета создаётся с правами root root:
# l /var/run/php8.2-fpm/php8.2-fpm.sock 
srw-rw---- 1 root root 0 фев 14 10:52 /var/run/php8.2-fpm/php8.2-fpm.sock

В логах nginx ошибка:
==&gt; /var/log/nginx/error.log &lt;==
2023/02/14 11:20:41 [crit] 11916#11916: *1 connect() to unix:/var/run/php8.2-fpm/php8.2-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 127.0.0.1, server: example.com, request: &quot;GET /fpm-fcgi-test.php HTTP/1.1&quot;, upstream: &quot;fastcgi://unix:/var/run/php8.2-fpm/php8.2-fpm.sock:&quot;, host: &quot;localhost&quot;

Проблема решается, если в файле /etc/fpm8.2/php-fpm.d/www.conf раскомментировать строки:
;listen.owner = _php_fpm
;listen.group = _webserver</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221684</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2023-02-15 09:51:07 +0300</bug_when>
    <thetext>исправлено в новой сборке, начиная с версии 8.2.3

Спасибо.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>