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.

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
add comment

1 Answer

up vote 0 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
add comment

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.