<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>session — LowEndSpirit</title>
        <link>https://lowendspirit.com/index.php?p=/</link>
        <pubDate>Thu, 04 Jun 2026 01:45:02 +0000</pubDate>
        <language>en</language>
            <description>session — LowEndSpirit</description>
    <atom:link href="https://lowendspirit.com/index.php?p=/discussions/tagged/session/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>PHP-FPM questions</title>
        <link>https://lowendspirit.com/index.php?p=/discussion/5072/php-fpm-questions</link>
        <pubDate>Thu, 15 Dec 2022 14:09:01 +0000</pubDate>
        <category>Help</category>
        <dc:creator>legendary</dc:creator>
        <guid isPermaLink="false">5072@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>What a beast of a software... Documentation in php.net is obscure to the max, some configs not documented at all. I have few question, which I couldn't google.</p>

<p>Example (Apache2 + PHP-FPM 8.1) CFG:</p>

<pre><code>[global]
pid = /run/php/php8.1-fpm.dronten.pid

[dronten]
        user = dronten
        group = dronten
        listen = /run/php/php8.1-fpm.dronten.sock
        listen.owner = www-data
        listen.group = www-data
        listen.mode = 0660
        pm = dynamic
        pm.max_children = 5
        pm.start_servers = 2
        pm.min_spare_servers = 1
        pm.max_spare_servers = 3

include = /etc/php/shared-values.inc
</code></pre>

<p>Shared-values.inc content:</p>

<pre><code>php_admin_value[session.save_path]    = "/var/lib/php/sessions/$pool"
php_admin_value[soap.wsdl_cache_dir]  = "/var/lib/php/wsdlcache/$pool"
php_admin_value[opcache.file_cache]  = "/var/lib/php/opcache/$pool"


listen.allowed_clients = 127.0.0.1

access.log = /var/log/php-fpm/$pool.access
access.format = "%{REMOTE_ADDR}e - %u %t \"%m %r%Q%q\" %s %f %{seconds}d %{mega}M %{user}C%%"

slowlog = /var/log/php-fpm/$pool.slow
</code></pre>

<p>Issues/questions:</p>

<ol>
<li><p>Is it possible to restart/reload pool instead of entire php-fpm? I have user "dronten" and separate pool cfg. I want to restart/reload only this user, leaving all other users intact.</p></li>
<li><p>Custom session.save_path not working. There is no sessions created in that folder. PHPinfo shows correct session path. Where the f... is session files?</p></li>
<li><p>OPcache security problem with shared pool should be resolved by setting separate session path. Am I correct?</p></li>
</ol>
]]>
        </description>
    </item>
   </channel>
</rss>
