Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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 + php5.so is fine. Further optimisation can include php fpm, apc, varnish etc ...

share|improve this answer

Your Answer

 
discard

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.