Project

General

Profile

Bug #595

Starting php-fpm Causing Segmentation Fault on FreeBSD

Added by Daniel Curtis over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Web Server
Target version:
Start date:
04/11/2015
Due date:
% Done:

100%

Estimated time:
0.10 h
Spent time:

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
      

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
      ...
      
  • Now php-fpm will start:
    service php-fpm start
    

Resources

History

#1 Updated by Daniel Curtis over 5 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

#2 Updated by Daniel Curtis over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF