I wonder, is there any possibility to find which .conf files apache is using at runtime? Some environment variable maybe, as it should work both windows and linux. Or php function?
If you run
you will see
which when combined will tell you the default location for the config file on a unix machine.
There's no apachectl for windows, but this posting indicates something similar might be possible by calling the apache executable directly with the proper arguments.
At runtime - no way. I would run
(replace httpd by the mpm binary you're using, like httpd.worker or just httpd)