Bug #595
Starting php-fpm Causing Segmentation Fault on FreeBSD
Description
I encountered an error while setting up an nginx web server using php-fpm for processing PHP.
- The error happened while starting php-fpm:
service php-fpm start
- Example output
Starting php_fpm. Segmentation fault /usr/local/etc/rc.d/php-fpm: WARNING: failed to start php_fpm
- Example output
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:
vi /usr/local/etc/php/extensions.ini
- And move extension=recode.so above extension=imap.so
... extension=recode.so extension=imap.so ...
- And move extension=recode.so above extension=imap.so
- Now php-fpm will start:
service php-fpm start
Resources¶
Updated by Daniel Curtis over 9 years ago
- Subject changed from Starting php-fpm Causes Segmentation Fault on FreeBSD to Starting php-fpm Causing Segmentation Fault on FreeBSD
- Description updated (diff)
- Status changed from New to Resolved
- % Done changed from 0 to 100