Bug #65926 [Opn->Fbk]: configure statedir option does not apply to fpm on source rebuild

From: Date: Tue, 23 Nov 2021 13:35:26 +0000
Subject: Bug #65926 [Opn->Fbk]: configure statedir option does not apply to fpm on source rebuild
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237947@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65926&edit=1

 ID:                 65926
 Updated by:         cmb@php.net
 Reported by:        marfillaster at gmail dot com
 Summary:            configure statedir option does not apply to fpm on
                     source rebuild
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            FPM related
 Operating System:   2.6.32-358.el6.x86_64
 PHP Version:        5.5.5
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>


Previous Comments:
------------------------------------------------------------------------
[2013-10-18 03:42:23] marfillaster at gmail dot com

Description:
------------
1. Initially, configure was not passed --statedir. Then php was built.
2. FPM wrote logs as expected in $prefix/var/log.
3. As a preference, logs should be in /var/log, so php was reconfigured with --statedir=/var then
rebuilt.
4. The defaults written in php-fpm.conf.defaults automatically reflected /var.
5. Starting php-fpm service triggers an error as it still looking at $prefix/var/log

workaround: 
a. make clean
or
b. manually override all conf that relies on statedir

Expected result:
----------------
php-fpm should start normally and use the reconfigured statedir

make clean should not be required

Actual result:
--------------
php-fpm did not start as it still looks in default derived statedir


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=65926&edit=1


Thread (3 messages)

« previous php.bugs (#237947) next »