On 26 Feb 11:39, Mark Rogers wrote:
In recent Ubuntu versions (no idea if this is inherited from Debian or not), the apache user is set in /etc/apache2/envvars, which is processed when Apache is [re]started via /etc/init.d/apache2 [re]start.
However, running apache outside that script will then cause errors. So for example, apache2 -t .. which should test the configuration without restarting, instead generates errors "bad user name" errors because the environment variable relied upon in apache2.conf is not being set.
So, is there a "correct" way to test the configuration?
apache2ctl configtest