Bug 4390 - php-fpm default configuration wrong
Summary: php-fpm default configuration wrong
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard:
Keywords: Triaged, validated_update
Depends on: 4435
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-03 08:03 CET by Herbert Poetzl
Modified: 2012-02-25 10:57 CET (History)
3 users (show)

See Also:
Source RPM: php-5.3.9-1.3.mga1.src.rpm
CVE:
Status comment:


Attachments

Description Herbert Poetzl 2012-02-03 08:03:36 CET
Description of problem:
after installing php-fpm, the service cannot be started because of a wrong configuration:

service php-fpm start
Starting php-fpm: [03-Feb-2012 07:59:05] ALERT: [pool www] pm.min_spare_servers(5) and pm.max_spare_servers(35) cannot be greater than pm.max_children(5)
[03-Feb-2012 07:59:05] ERROR: failed to post process the configuration
[03-Feb-2012 07:59:05] ERROR: FPM initialization failed
                                                                [FAILED]

Version-Release number of selected component (if applicable):
php-fpm-5.3.9-1.3.mga1

How reproducible:
always

Steps to Reproduce:
1. install php-fpm
2. try to start the service
3.
Comment 1 Manuel Hiebel 2012-02-03 18:46:03 CET
Hi, thanks for reporting this bug.
Assigned to the package maintainer.

(Please set the status to 'assigned' if you are working on it)

Keywords: (none) => Triaged
Assignee: bugsquad => thomas

Comment 2 Thomas Spuhler 2012-02-06 22:23:49 CET
yep, nneds to be increased in the config file.
Can you increase it to 40 until I have the fix released
This bug should be in cauldron as well.

Status: NEW => ASSIGNED

Comment 3 Thomas Spuhler 2012-02-07 06:11:32 CET
it's now in updates_testing as 5.3.10-0.2.mga1
Would you mind to check if this works for you.
Comment 4 Thomas Spuhler 2012-02-09 05:51:40 CET
I consider this as resolved. I increased the rel to 1 no subrel
Thomas Spuhler 2012-02-09 05:52:27 CET

Assignee: thomas => qa-bugs

claire robinson 2012-02-16 10:53:02 CET

Depends on: (none) => 4435

Comment 5 Dave Hodgins 2012-02-17 08:33:21 CET
# rpm -q -l php-fam
/etc/php.d/20_fam.ini
/usr/lib/php/extensions/fam.so
/usr/share/doc/php-fam
/usr/share/doc/php-fam/CREDITS
/usr/share/doc/php-fam/package.xml

There is no service in this package.  What are we supposed to be
testing?

CC: (none) => davidwhodgins

Comment 6 claire robinson 2012-02-24 15:59:28 CET
Dave, it is fpm with a P in the middle, you used fpm with an A :)

Testing x86_64

Before
------
# service php-fpm start
Starting php-fpm: [24-Feb-2012 14:40:33] ALERT: [pool www] pm.min_spare_servers(5) and pm.max_spare_servers(35) cannot be greater than pm.max_children(5)
[24-Feb-2012 14:40:33] ERROR: failed to post process the configuration
[24-Feb-2012 14:40:33] ERROR: FPM initialization failed        [FAILED]


After
-----
# service php-fpm start
Starting php-fpm:                                              [  OK  ]


# ps ax | grep fpm
 8015 ?        Ss     0:00 php-fpm: master process (/etc/php-fpm.conf)
 8016 ?        S      0:00 php-fpm: pool www
 8017 ?        S      0:00 php-fpm: pool www
 8018 ?        S      0:00 php-fpm: pool www
 8019 ?        S      0:00 php-fpm: pool www
 8020 ?        S      0:00 php-fpm: pool www
 8021 ?        S      0:00 php-fpm: pool www
 8022 ?        S      0:00 php-fpm: pool www
 8023 ?        S      0:00 php-fpm: pool www
 8024 ?        S      0:00 php-fpm: pool www
 8027 ?        S      0:00 php-fpm: pool www
 8029 ?        S      0:00 php-fpm: pool www
 8030 ?        S      0:00 php-fpm: pool www
 8031 ?        S      0:00 php-fpm: pool www
 8032 ?        S      0:00 php-fpm: pool www
 8033 ?        S      0:00 php-fpm: pool www
 8035 ?        S      0:00 php-fpm: pool www
 8036 ?        S      0:00 php-fpm: pool www
 8037 ?        S      0:00 php-fpm: pool www
 8038 ?        S      0:00 php-fpm: pool www
 8039 ?        S      0:00 php-fpm: pool www
 8583 pts/1    S+     0:00 grep --color fpm

Testing complete x86_64
Comment 7 Dave Hodgins 2012-02-24 23:44:15 CET
Oops.  Thanks for noticing Claire.
Testing complete on i586.

Could someone from the sysadmin team push the srpm
php-5.3.10-1.mga1.src.rpm
from Core Updates Testing to Core Updatea.

Advisory: This bug fix for php-apc corrects configuration settings
to allow the PHP5 FastCGI Process Manager to be started.
https://bugs.mageia.org/show_bug.cgi?id=4390

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 8 Thomas Backlund 2012-02-25 10:57:33 CET
Pushed as part of:
https://bugs.mageia.org/show_bug.cgi?id=4435

Status: ASSIGNED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.