Edit report at http://bugs.php.net/bug.php?id=52507&edit=1
ID: 52507 Comment by: lys0212 at qq dot com Reported by: lys0212 at qq dot com Summary: 5.3.3 php-fpm start failed Status: Bogus Type: Bug Package: *General Issues Operating System: linux 5.5 PHP Version: 5.3.3 Block user comment: N New Comment: it work! thank you so much ! thank you for your help! thank you for php! Previous Comments: ------------------------------------------------------------------------ [2010-07-31 20:20:51] ras...@php.net Big project? It takes about 2 minutes. It is much simpler and easier to read than the XML version. Here, I just did it for you: [global] pid=/dev/shm/php-fpm.pid error_log = /var/log/php-fpm.log log_level = notice emergency_restart_threshold = 10 emergency_restart_interval = 1m process_control_timeout = 5s daemonize = yes [default] listen = 127.0.0.1:9000 listen.allowed_clients = 127.0.0.1 listen.backlog = -1 listen.owner = jobui listen.group = jobui listen.mode = 0666 php_admin_flag[display_errors] = on php_admin_flag[log_errors] = on php_admin_value[error_log] = /web/php/tmp/php.err user = jobui group = jobui pm = dynamic pm.max_children = 128 pm.start_servers = 20 pm.min_spare_servers = 15 pm.max_spare_servers = 30 pm.max_requests = 500 request_terminate_timeout = 450s request_slowlog_timeout = 0 slowlog = /var/log/php-fpm.log.slow rlimit_files = 65536 rlimit_core = 0 catch_workers_output = yes env[HOSTNAME] = $HOSTNAME env[PATH] = /usr/local/bin:/usr/bin:/bin env[TMP] = /tmp env[TMPDIR] = /tmp env[TEMP] = /tmp env[OSTYPE] = $OSTYPE env[MACHTYPE] = $MACHTYPE env[MALLOC_CHECK_] = 2 ------------------------------------------------------------------------ [2010-07-31 19:46:04] lys0212 at qq dot com oh,i see! thank you very much! it means that i must change the php-fpm.conf like php.ini format . To do this,it will be a very big projectï¼ ------------------------------------------------------------------------ [2010-07-31 19:39:03] ras...@php.net Right, php-fpm-0.6-5.3.1/generate-fpm-patch shows that you patched the standard default PHP distribution with your own version of php-fpm you got from somewhere else. The PHP version of FPM does not support XML configuration files. ------------------------------------------------------------------------ [2010-07-31 19:33:40] lys0212 at qq dot com the follows show how i install 5.3.2,it can use php-fpm.conf to start: it support xml format ,5.3.3 don't support? rm -Rf php-5.3.2 fpm.patch php-fpm-0.6-5.3.1; tar xvf php-fpm-0.6~5.3.1.tar.gz; ./php-fpm-0.6-5.3.1/generate-fpm-patch ; #å¨å½åç®å½ä¸äº§çfpm.patchæä»¶ï¼ tar xvf php-5.3.2.tar.gz; cd php-5.3.2; patch -p1 < ../fpm.patch ; ./buildconf --force; mkdir fpm-build cd fpm-build #CC=gcc CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O6 -pipe" CXXFLAGS="${CFLAGS}" ../configure --prefix=/web/software/php \ --with-mysql=mysqlnd --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --with-jpeg-dir=/web/software/jpeg6 \ --with-png-dir=/web/software/libpng2 \ --with-freetype-dir=/web/software/freetype2 \ --with-curl=/web/software/curl \ --with-zlib-dir=/web/software/zlib \ --disable-ipv6 --enable-sockets --disable-debug \ --with-mcrypt=/web/software/libmcrypt \ --enable-fastcgi \ --with-fpm \ --with-libevent=/web/software/libevent-1.4.13/ \ --with-config-file-path=/web/software/php/lib \ --enable-xml --disable-rpath --enable-discard-path \ --enable-safe-mode --enable-bcmath --enable-shmop \ --enable-sysvsem --enable-inline-optimization --with-curl \ --with-curlwrappers --enable-mbregex \ --enable-force-cgi-redirect --enable-mbstring --with-gd \ --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl \ --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap --without-pear \ --with-fpm-conf=/web/software/php/lib/php-fpm.conf make -j8 && make install || sleep 5 ------------------------------------------------------------------------ [2010-07-31 19:28:48] ras...@php.net There was no FPM sapi in PHP-5.3.2 so I don't know what code you are running, but it didn't come from us. ------------------------------------------------------------------------ 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=52507 -- Edit this bug report at http://bugs.php.net/bug.php?id=52507&edit=1