Optional apache
Fixed syntax error?
Fixed syntax errors, I think.
Still learning bash. I think I got it.
Should be working now.
Removed the rest of apache variables if apache not needed
Fixed typo
OK I think I got it this time
OK last thing, forgot one part outside of the conditional
Formatted output messages
Moved stuff around, exit above apache config now
Had exit value 1 instead of 0
incorporate @bkeepers wisdom.