Edit report at http://bugs.php.net/bug.php?id=53311&edit=1
ID: 53311
Comment by: fat@php.net
Reported by: paulgao at yeah dot net
Summary: startup failed.
Status: Feedback
Type: Bug
Package: FPM related
Operating System: Centos 64-bit 5.5
PHP Version: 5.3SVN-2010-11-15 (SVN)
Assigned To: fat
Block user comment: N
Private report: N
New Comment:
can you set daemonize to no
and run fpm directely from command line with
/usr/local/php/sbin/php-fpm --fpm-config
/home/codebase/server-config/php-fpm-
api-test.ini
and test
thx
++ jerome
Previous Comments:
------------------------------------------------------------------------
[2010-11-26 19:53:22] paulgao at yeah dot net
sorry, my english is poor.
Today i use latest svn trunk, but same failed.
Plz help me...
------------------------------------------------------------------------
[2010-11-18 10:25:27] paulgao at yeah dot net
I use root exec scriptãfpm user is nobodyã
------------------------------------------------------------------------
[2010-11-18 10:04:16] fat@php.net
PLEASE ANSWER THE QUESTION I ASK !
with which user do you launch FPM ?
------------------------------------------------------------------------
[2010-11-18 04:57:11] paulgao at yeah dot net
startup script:
#! /bin/sh
ulimit -HSn 65000
ulimit -c unlimited
echo '/tmp/core-%e.%p' > /proc/sys/kernel/core_pattern
php_fpm_BIN=/usr/local/php/sbin/php-fpm
php_fpm_CONF=/home/codebase/server-config/php-fpm-api-test.ini
php_fpm_PID=/home/php-fpm.pid
php_opts="--fpm-config $php_fpm_CONF"
#/usr/bin/strip $php_fpm_BIN /usr/local/php/bin/php
wait_for_pid () {
try=0
while test $try -lt 35 ; do
case "$1" in
'created')
if [ -f "$2" ] ; then
try=''
break
fi
;;
'removed')
if [ ! -f "$2" ] ; then
try=''
break
fi
;;
esac
echo -n .
try=expr $try + 1
sleep 1
done
}
case "$1" in
start)
echo -n "Starting php-fpm "
$php_fpm_BIN $php_opts
if [ "$?" != 0 ] ; then
echo " failed"
exit 1
fi
wait_for_pid created $php_fpm_PID
if [ -n "$try" ] ; then
echo " failed"
exit 1
else
echo " done"
fi
;;
stop)
echo -n "Gracefully shutting down php-fpm "
if [ ! -r $php_fpm_PID ] ; then
echo "warning, no pid file found - php-fpm is not running
?"
exit 1
fi
kill -QUIT cat $php_fpm_PID
wait_for_pid removed $php_fpm_PID
if [ -n "$try" ] ; then
echo " failed. Use force-exit"
exit 1
else
echo " done"
fi
;;
force-quit)
echo -n "Terminating php-fpm "
if [ ! -r $php_fpm_PID ] ; then
echo "warning, no pid file found - php-fpm is not running
?"
exit 1
fi
kill -TERM cat $php_fpm_PID
wait_for_pid removed $php_fpm_PID
if [ -n "$try" ] ; then
echo " failed"
exit 1
else
echo " done"
fi
;;
restart)
$0 stop
$0 start
;;
reload)
echo -n "Reload service php-fpm "
if [ ! -r $php_fpm_PID ] ; then
echo "warning, no pid file found - php-fpm is not running
?"
exit 1
fi
kill -USR2 cat $php_fpm_PID
echo " done"
;;
*)
echo "Usage: $0 {start|stop|force-quit|restart|reload}"
exit 1
;;
esac
------------------------------------------------------------------------
[2010-11-17 08:30:41] fat@php.net
with which user do you launch FPM ?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=53311--
Edit this bug report at http://bugs.php.net/bug.php?id=53311&edit=1