|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-02-22 06:59 UTC] php at mike2k dot com
Description: ------------ Running Zeus with FastCGI. If I uncomment extension=apc.so in php.ini, the server crashes on almost every request it seems. If I disable APC in php.ini, no crashes occur... Just compiled PHP (and APC) fresh. PHP configure: './configure' '--enable-cli' '--enable-fastcgi' '--with-mysql' '--with-mysqli=/usr/bin/mysql_config' '--with-curl' '--enable-mbstring' '--with-zlib' '--with-gd' '--enable-track-vars' '--enable-inline-optimization' '--disable-rpath' '--disable-ipv6' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-freetype-dir' '--enable-gd-native-ttf' '--enable-shmop' '--with-xsl' '--enable-sockets' '--enable-pcntl' '--with-mcrypt' '--with-bz2' '--enable-sqlite-utf8' Server API CGI/FastCGI PHP API 20041225 PHP Extension 20060613 Zend Extension 220060519 Debug Build no Thread Safety disabled Zend Memory Manager enabled [root@web02 ~]# /usr/local/zeus/php/php.fcgi -v PHP 5.2.1 (cgi-fcgi) (built: Feb 22 2007 02:23:29) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies [root@web02 ~]# /usr/local/zeus/php/php.fcgi -m [PHP Modules] bz2 cgi-fcgi ctype curl date dom filter gd hash iconv json libxml mbstring mcrypt mysql mysqli pcntl pcre PDO pdo_sqlite posix Reflection session shmop SimpleXML sockets SPL SQLite standard tokenizer xml xmlreader xmlwriter xsl zlib [Zend Modules] Reproduce code: --------------- see above Expected result: ---------------- apc works as normal :) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 17:00:02 2025 UTC |
Just tested APC CVS HEAD with fcgi (with the following in apache2) FastCgiServer /opt/php-fcgi/bin/php -processes 1 AddHandler php-fastcgi .php <Location /cgi-bin/php> SetHandler fastcgi-script </Location> Action php-fastcgi /cgi-bin/php AddType application/x-httpd-php .php And it seems to work. Please note that every fast-cgi process has its own independent cache in this scenario, so I hope the apc mmap filemask is not set (or has the .XXXXX) So I'll need a backtrace (i.e (gdb)bt full) on a core or something similar to help you.