Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 have compiled apache 2.2 with php5 and after uncommenting loadmodule line for php in apache conf file the php started but as a shared module so is there any way to compile it as static ?

share|improve this question

Short answer : No

Long answer : Never heard of someone trying to compile php inside httpd, and I can't figure out why someone would want to. In production, I highly recommend using official binary packages provided by debian or redhat.

Using apache prefork + is fine. Further optimisation can include php fpm, apc, varnish etc ...

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.