RSS feed for comments on this post.
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
0.638 Powered by WordPress
There are reports that one should also have session early in the list of extensions to be loaded.
see http://docs.freebsd.org/cgi/getmsg.cgi?fetch=552506+0+archive/2006/freebsd-ports/20061119.freebsd-ports
Comment by Spil — 12/1/2006 @ 8:15 am
I was struggling with this too (on FBSD 5.x) and tried every recommended ordering I found. The final fix for me was to recompile php5 and all the php5 modules with with less aggressive compiler optimization in /etc/make.conf. I normally have “CFLAGS=-O2 -pipe -funroll-loops -march=pentium4″. I reduced it to -O, recompiled all and restarted Apache, then the seg faults went away.
Comment by O'Shaughnessy Evans — 1/5/2007 @ 4:48 pm
Very helpful. I had segmentation fault problems with phpMyAdmin not opening after I made changes to php.ini and added extensions. Based on your advice, I looked at extensions.ini and found many duplicate lines. I removed all the duplicates and put mysql at the bottom and it fixed the problem. Thanks.
Comment by Richard — 2/14/2007 @ 2:17 am
thanks for this post, i’m going to try to reorder my extensions. any more info on this would be VERY appreciated.
Comment by artur — 2/18/2007 @ 3:45 pm
[...] & PHP5 which may seem related to use of extensions within PHP (extensions.ini), please read “PHP Crashes Caused By Extensions” [...]
Pingback by Life on the edge of /dev/null » Blog Archive » PHP Extensions trouble — 3/1/2007 @ 4:06 am
Thanks a lot for your post, this was exactly what I was experiencing. ANY php script crashed with signal 6 at the end. First I thought it was the ’simplexml’ extension causing this, because disabling it fixed the problem as well. But I needed this extension, and finally, moving ‘mysql’ to the end of the list worked. I don’t use the ‘imap’ or ’socket’ extensions, though. (php-5.2.2 on FreeBSD-6.1-RELEASE)
Comment by peter — 6/1/2007 @ 4:36 am
Tahnk you, very useful so far.
Comment by granec — 12/13/2007 @ 5:59 pm
Thanks from Ukraine, we have problem “exited on signal 6″…
Comment by Dmitry — 6/24/2008 @ 9:59 am
Thankyou your article!
Comment by bela — 8/1/2008 @ 7:37 am
i had similar problem with 7.0-STABLE, except apache was not exiting (it was just hanging), but the cli version of php would core dump. fixed by putting imap at the end of the extensions (i did not have to move any others).
Comment by dolemite — 9/3/2008 @ 11:39 pm
I had similar problem with freebsd 7.1/amd64/apache 1.3.41/php 5.2.8/postgresql 8.3.x and extension=pgsql.so
this is mine /usr/local/etc/php/extensions.ini
extension=mysql.so
extension=session.so
extension=xml.so
extension=pgsql.so
extension=gd.so
extension=curl.so
after httpd restart, apache go signal 11 and dumped core
my solution:
in httpd.conf add/uncoment line:
ServerName yourhost.yourdomain.extension
Comment by blog — 1/23/2009 @ 11:57 am