It's always best to try and replicate your production environment on some other hardware or inside a virtual machine in order to test out any changes you're about to make. VirtualBox, for example, is free, as are many of the popular Linux distributions if that's what you're using.
You're right that a reboot can be trouble, but it's not for the reasons you're talking about. The biggest issues are, in order of frequency:
- Configuration errors:
apachectl -t
should find these. - Missing directories: The httpd
error.log
should identify these. - Broken system software: Other error messages show up.
A production environment should always have the code there checked into a version control system so you can identify what changes, if any, have been made to it since the last reboot. If you don't have one of these, that's the first thing to fix. Git is the de-facto choice for this these days.