Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having a problem compiling LAMP, I have everything compiled and working, but when I try to restart apache I get the following error:

seg fault or similar nasty error detected in the parent process

And restart of apache aborts, I know is related with curl extension for php, as when i compile php without curl the error does not appear. I've been looking a lot in Google, and found many similar questions, but none with an solution.

share|improve this question

migrated from Jan 22 '12 at 0:58

This question came from our site for professional and enthusiast programmers.

Any reason you're compiling it yourself and not using WAMP or a similar pre-packaged setup? – Marc B Jan 19 '12 at 16:27
Boss orders. :D – Pablo Jan 19 '12 at 16:54

Finally I solved the problem, but sadly by a workaround.

As I told in the question, the problem was related to Curl, as when curl were complied with php I get the segmentation fault error, Reading in Google I found that this error is common and dificult to solve :D, and related with php extension load order. So, the error may appear with any other module compiled.

The way I solved was taking Curl out from the compilation and loading it straight from php.ini, making a manual compilation of the Curl module and setting path to php modules default path, "/usr/local/lib" in my case.

After that, just adding:


To php.ini file has solved the problem for me.

Hope it helps if any body found this question and have the same problem.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.