In the restart section of the init.d script for apache2, the code uses APACHE_OPTS when it should be using APACHE2_OPTS instead. If you have APACHE2_OPTS defined, this causes the options to be lost upon issuing a 'restart' command. Reproducible: Always Steps to Reproduce: 1.Define some APACHE2_OPTS in conf.d (say -D PHP) 2./etc/init.d/apache2 start (okay, php works) 3./etc/init.d/apache2 restart (now, -D PHP is lost) Actual Results: The configuration files were loaded without -D PHP (or whatever was in APACHE2_OPTS). Expected Results: Made use of the options in conf.d
Created attachment 8205 [details, diff] a patch This should fix the problem, I think...
refer to Bug 7995
fixed this.