Date: Tue, 04 Sep 2012 08:25:24 +0200 From: Bas Smeelen <b.smeelen@ose.nl> To: freebsd-questions@freebsd.org Subject: Re: Error after upgrading to php 5.4.6 Message-ID: <50459ED4.3020804@ose.nl> In-Reply-To: <k23ocm$iju$1@ger.gmane.org> References: <F937A155-7B1D-4421-8BA8-6BD4659D09C0@norden1.com> <5044C2FC.5050703@ifdnrg.com> <k23ocm$iju$1@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 09/04/2012 04:18 AM, Michael Powell wrote: > Paul Macdonald wrote: > >> On 03/09/2012 12:26, Darrell Betts wrote: >>> My php pages will no longer render in a web browser after upgrading to >>> php 5.4.6. Used port upgrade to do this. Running apache 2.2.22_6. Checked >>> the error log and this is what I receive >>> >>> [notice] child pid 38232 exit signal Segmentation fault (11) >>> >>> This does this on all php pages. >>> Any idea how to fix this error? > [snip] >> try editing your /usr/local/etc/php/extensions.ini, comment out all >> extensions (restart apache) and see if it stops seg faulting. >> If it works, add in the modules one by one until it stops. >> >> Previously i've seen people posting about the order being important >> > Some while back I thought portupgrading PHP caused the extensions.ini to be > edited after each and every extension rebuild/reinstall, causing a shuffle > like effect. Since I do a backup before, including all configs, I got into > the habit of just copying my old extensions.ini back into place afterwards > prior to restarting PHP and/or web servers. > > -Mike > My previous response was sent too early :( I still get errors in apache [Tue Sep 04 08:14:42 2012] [error] [client 192.168.1.189] PHP Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0, referer: http://sys.ose.nl/cacti/graph_view.php?action=tree&tree_id=1&leaf_id=21 [Tue Sep 04 08:14:43 2012] [notice] child pid 56172 exit signal Segmentation fault (11) [Tue Sep 04 08:14:43 2012] [notice] child pid 56163 exit signal Segmentation fault (11) [Tue Sep 04 08:14:53 2012] [error] [client 192.168.1.189] PHP Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0, referer: http://sys.ose.nl/cacti/graph_view.php?action=tree&tree_id=1&leaf_id=7 [Tue Sep 04 08:15:59 2012] [notice] child pid 56169 exit signal Segmentation fault (11) So now I will comment out all extensions and start investigating. Well it turns out to be apc.so, this comes with core php I guess? For completeness: The php manual states this is for alternative php cache. http://php.net/manual/en/book.apc.php With apc.so commented out and testing with cacti and mediawiki all seems to go well. My extensions.ini follows below extension=pdf.so extension=imagick.so ;extension=apc.so extension=hash.so extension=phar.so extension=zip.so extension=zlib.so extension=iconv.so extension=mysql.so extension=pdo.so extension=pdo_sqlite.so extension=sqlite3.so extension=json.so extension=tokenizer.so extension=filter.so extension=posix.so extension=ctype.so extension=dom.so extension=simplexml.so extension=xml.so extension=xmlreader.so extension=xmlwriter.so extension=session.so Disclaimer: http://www.ose.nl/email
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50459ED4.3020804>