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

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to