Debian - how to dump virtual hosts

For Debian/Ubuntu use the following:

apache2ctl -S

You don't have the username and group environment variables defined. Try APACHE_RUN_USER=www-data APACHE_RUN_GROUP=www-data apache2 -S

(replace www-data with the username/group apache is running of)