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

Is it safe to compile php with --enable-debug on a production environment server? Which could be the consequences?

share|improve this question
Slower execution for sure (although I cannot tell how much slower -- on my test box it was around 10% .. but that was almost 2 years ago). – LazyOne Aug 15 '11 at 23:55
up vote 1 down vote accepted

It's a performance killer, usually what you would want to do is enable debugging on your development environment, do a lot of tests from the user perspective to make sure your application is not going to fail if third-party components are inaccessible.

It is indeed hard to tell how much slower your server will run, it will depend on how many requests you have and what is your hardware.

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.