SOLVED: Re: Error after upgrading to php 5.4.6
This is now solved after an update to pecl-APC-3.1.13 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"
SOLVED: Re: Error after upgrading to php 5.4.6
On 09/04/2012 09:02 AM, Michael Powell wrote: Bas Smeelen wrote: [snip] 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) [snip] Well it turns out to be apc.so, this comes with core php I guess? [snip] Sorry, this just delays the error but it eventually comes back so I'll keep apc.so commented. I have found that the faults are present because www/pecl-APC was not recompiled/reinstalled. So I reinstalled www/pecl-APC with portmaster -f and this also reinstalled the following ports: Re-install pecl-APC-3.1.12 Re-install autoconf-2.69 Re-install autoconf-wrapper-20101119 Re-install gmake-3.82_1 Re-install gettext-0.18.1.1 Re-install libiconv-1.14 Re-install libtool-2.4.2 Re-install m4-1.4.16_1,1 Re-install perl-5.12.4_4 Re-install help2man-1.40.11 Re-install p5-Locale-gettext-1.05_3 Re-install php5-5.4.6 Re-install pcre-8.31 Re-install pkgconf-0.8.7_2 Re-install libxml2-2.7.8_3 Re-install apache-2.2.22_6 Re-install apr-ipv6-devrandom-gdbm-db42-1.4.5.1.3.12_1 Re-install db42-4.2.52_5 Re-install gdbm-1.9.1 Re-install automake-1.12.3 Re-install automake-wrapper-20101119 Re-install python27-2.7.3_3 Re-install expat-2.0.1_2 There is nothing about this in UPDATING, should there? This solved the problem anyway. Bas 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"
SOLVED: Re: Error after upgrading to php 5.4.6
On 09/04/2012 09:02 AM, Michael Powell wrote: Bas Smeelen wrote: [snip] 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) [snip] Well it turns out to be apc.so, this comes with core php I guess? [snip] I have found that the faults are present because www/pecl-APC was not recompiled/reinstalled. So I reinstalled www/pecl-APC with portmaster -f and this also reinstalled the following ports: Re-install pecl-APC-3.1.12 Re-install autoconf-2.69 Re-install autoconf-wrapper-20101119 Re-install gmake-3.82_1 Re-install gettext-0.18.1.1 Re-install libiconv-1.14 Re-install libtool-2.4.2 Re-install m4-1.4.16_1,1 Re-install perl-5.12.4_4 Re-install help2man-1.40.11 Re-install p5-Locale-gettext-1.05_3 Re-install php5-5.4.6 Re-install pcre-8.31 Re-install pkgconf-0.8.7_2 Re-install libxml2-2.7.8_3 Re-install apache-2.2.22_6 Re-install apr-ipv6-devrandom-gdbm-db42-1.4.5.1.3.12_1 Re-install db42-4.2.52_5 Re-install gdbm-1.9.1 Re-install automake-1.12.3 Re-install automake-wrapper-20101119 Re-install python27-2.7.3_3 Re-install expat-2.0.1_2 There is nothing about this in UPDATING, should there? This solved the problem anyway. Bas 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"
Re: Error after upgrading to php 5.4.6
Bas Smeelen wrote: [snip] > > 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 I use xcache. However, whenever I rebuild PHP I also rebuild xcache. Sometimes when the change is very small you may get away with not doing it, but whenever updating between major versions it is a must. I had this happen one time too many and just got into the habit of whenever I rebuild/update PHP I rebuild xcache as well. I believe it pulls in includes form PHP during it's build process so if PHP changes too much xcache will segfault, or just outright refuse to load. [snip] ___ 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"
Re: Error after upgrading to php 5.4.6
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"
Re: Error after upgrading to php 5.4.6
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 Well with pkg_delete -f php5\* , removing all of php's config files in /usr/local/etc (keeping a backup of course) and then installing php-5.4.6 extensions resolved the problem. It does not happen too often that this goes wrong, but somehow php can be troublesome at times. Thanks Bas 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"
Re: Error after upgrading to php 5.4.6
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 ___ 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"
Re: Error after upgrading to php 5.4.6
Hi! After any upgrade of php i'm use one script that was founded on freebsd.org $ cd /usr/local/etc/php $ cat fixphpextorder.sh #!/bin/sh # = # Fix php/extensions.ini order # # Script based on the idea and information(s) of # - http://www.pingle.org/2007/09/22/php-crashes-extensions-workaround # - http://nerdstock.org/php_extensions # # Please copy your original php/extensions.ini to a save place before # running this script! # # There is no guaranty the script is working for you or don't damage # your system. Use at own Risk! # # 2011-04-03 olli hauer # # License: BSD # http://www.freebsd.org/copyright/freebsd-license.html # # # Updates: # 2011-12-26: # Make sed expression more explicit. # Reported by Kartsten Schmidt # INI=/usr/local/etc/php/extensions.ini EXT="session.so fileinfo.so crack.so ssh2.so imagick.so ldap.so simplexml.so dba.so ctype.so apc.so ftp.so mbstring.so tokenizer.so filter.so pgsql.so gmp.so mcrypt.so tidy.so xmlwriter.so mhash.so gd.so ncurses.so readline.so gettext.so iconv.so dbase.so calendar.so exif.so zlib.so curl.so mailparse.so xmlrpc.so bz2.so sysvmsg.so pdf.so openssl.so ming.so dom.so hash.so xmlreader.so gnupg.so bcmath.so pcre.so xsl.so wddx.so memcache.so soap.so spl.so sqlite.so recode.so pdo.so pdo_mysql.so pdo_sqlite.so mysqli.so mysql.so imap.so sockets.so pspell.so xml.so" if [ ! -e ${INI} ] ; then echo "cannot find ${INI}" exit 1 fi # cleanup previous run [ -e ${INI}.new ] && rm -f ${INI}.new cp -f ${INI} ${INI}.work for e in ${EXT}; do if egrep -q "^extension=${e}" ${INI}.work ; then echo extension=${e} >> ${INI}.new sed -i '' -e "/^extension=${e}/d" ${INI}.work fi done if [ -s ${INI}.work ]; then echo "; additional extension(s) not known by $(basename $0)" >> ${INI}.new # sybase_ct needs to be loaded last. grep ^extension ${INI}.work | grep -v sybase_ct.so >> ${INI}.new grep ^extension=sybase_ct.so ${INI}.work >> ${INI}.new AE=1 fi [ -e ${INI}.work ] && rm -f ${INI}.work if cmp -s ${INI} ${INI}.new ; then echo "No changes found, remove ${INI}.new" rm -f ${INI}.new AE=0 fi if [ ${AE} -ne 0 ]; then cat << _EOF == New INI is saved as ${INI}.new Additional extension(s) not known by $(basename $0) are added to the end of new INI file. Please review the new INI, and replace it on your own! Do some Basic tests: php -V php -m php -i apachectl graceful ... _EOF fi cat << _EOF If the segfault issue is not gone, or you cannot find the issue - ask on the ports@ mailing list or - open a PR: Synopsys: lang/php5 Segmentation fault. Additional try debugging with command: gdb php ./php.core http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/debugging.html _EOF Best regards, Vladimir Unix Sysadmin 03.09.2012 15:26, Darrell Betts пишет: 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? Thanks___ 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" ___ 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"
Re: Error after upgrading to php 5.4.6
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? Thanks___ 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" 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 Paul. -- - Paul Macdonald IFDNRG Ltd Web and video hosting - t: 0131 5548070 m: 07970339546 e: p...@ifdnrg.com w: http://www.ifdnrg.com - IFDNRG 40 Maritime Street Edinburgh EH6 6SA - ___ 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"
Re: Error after upgrading to php 5.4.6
On 09/03/2012 03:23 PM, Jerry wrote: On Mon, 03 Sep 2012 13:52:45 +0200 Bas Smeelen articulated: On 09/03/2012 01:26 PM, 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? I had the same issue on a 8.3-STABLE machine. On other machines php is still at 5.4.3 and does not have this problems. On the machine where 5.4.6 gave the problems I completely removed php and installed lang/php53 (5.3.16) which solved the issue If you are using portmaster -b to update ports, then a backup of the previous port will be in /usr/ports/packages and you can reinstall the previous version I completely removed all traces of PHP from my system, including configuration files, made sure to run "make config" in each PHP port I intended to install and then installed the latest version of PHP without a single problem. I believe, although I can not prove it, that the problem is not in the PHP port but rather in the update process. Running "portmanager" with the "-p" option might take care of some ports not being updated correctly with PHP also. Again, there is nothing wrong with the latest version but rather in the way it is presently running on your system. OK thanks voor the insight, I only checked the extensions.ini file after updating I will go ahead and try it the clean way with version 5.4.6 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"
Re: Error after upgrading to php 5.4.6
On Mon, 03 Sep 2012 13:52:45 +0200 Bas Smeelen articulated: > On 09/03/2012 01:26 PM, 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? > > > I had the same issue on a 8.3-STABLE machine. > On other machines php is still at 5.4.3 and does not have this > problems. > > On the machine where 5.4.6 gave the problems I completely removed php > and installed lang/php53 (5.3.16) which solved the issue > > If you are using portmaster -b to update ports, then a backup of the > previous port will be in /usr/ports/packages and you can reinstall > the previous version I completely removed all traces of PHP from my system, including configuration files, made sure to run "make config" in each PHP port I intended to install and then installed the latest version of PHP without a single problem. I believe, although I can not prove it, that the problem is not in the PHP port but rather in the update process. Running "portmanager" with the "-p" option might take care of some ports not being updated correctly with PHP also. Again, there is nothing wrong with the latest version but rather in the way it is presently running on your system. -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ ___ 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"
Re: Error after upgrading to php 5.4.6
On 09/03/2012 01:26 PM, 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? Thanks___ I had the same issue on a 8.3-STABLE machine. On other machines php is still at 5.4.3 and does not have this problems. On the machine where 5.4.6 gave the problems I completely removed php and installed lang/php53 (5.3.16) which solved the issue If you are using portmaster -b to update ports, then a backup of the previous port will be in /usr/ports/packages and you can reinstall the previous version 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"