Bug #595
Updated by Daniel Curtis over 9 years ago
I encountered an error while setting up an nginx web server using php-fpm for processing PHP. * The error happened while starting php-fpm: <pre> service php-fpm start </pre> #* _Example output_ <pre> Starting php_fpm. Segmentation fault /usr/local/etc/rc.d/php-fpm: WARNING: failed to start php_fpm </pre> h3. The Fix As it turns out, this is a problem with certain PHP modules being loaded later than another; specifically the recode.so module was being loaded after the imap.so module. * To fix this, edit the php extension configuration file: <pre> vi /usr/local/etc/php/extensions.ini </pre> #* And +move *extension=recode.so* above *extension=imap.so*+ <pre> ... extension=recode.so extension=imap.so ... </pre> * Now php-fpm will start: <pre> service php-fpm start </pre> h2. Resources * https://forums.freebsd.org/threads/php-segmentation-fault-11-after-update.39910/#post-264571