Thank you for your report. The default configuration provided by apache2 is in /etc/apache2. It uses apache2ctl, which uses /etc/apache2/envvars.
If you do not have these variables defined in your environment when you call apache2, then you either need to source /etc/apache2/envvars to define them first, or replace the default configuration with one that does not need these variables defined. > I expected to see no errors when performing the "apache2 -V" command. I appears that a file that defines these variables is missing. I think your expectation here is mismatched, and this behaviour is by design. If you want to call the binary directly instead of through apache2ctl, then of course you can do so, but must do it correctly. >From the apache2(8) manpage: In general, apache2 should not be invoked directly, but rather should be invoked via /etc/init.d/apache2 or apache2ctl. The default Debian configuration requires environment variables that are defined in /etc/apache2/envvars and are not available if apache2 is started directly. However, apache2ctl can be used to pass arbitrary arguments to apache2. If I do: . /etc/apache2/envvars apache2 -V then I see the output that perhaps you were expecting. Marking this bug as Invalid, as I think that this behaviour is by design and shouldn't be a problem. If you disagree, please explain and set the bug status back to New. ** Changed in: apache2 (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1262853 Title: Apache2 config file not set up correctly during install To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1262853/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs