solution: apache2ctl configtest failing on Gentoo

OS: Gentoo Webmin version: 1.791 Virtualmin version: 5.05

Requisites: Initial setup of a virtualmin-compatible environment, including postfix, dovecot, apache, webalyzer, spamasassin, and so on, including the correct use flags. Problem:

Running "Re-Check Configuration" presents the following output:

The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active .. Your system has 3.86 GB of memory, which is at or above the Virtualmin recommended minimum of 256 MB. BIND DNS server is installed, and the system is configured to use it.

Mail server Postfix is installed and configured.

Postfix is configured to support per-domain outgoing IP addresses.

Apache configuration errors were found :

  • Checking apache2 configuration ... [ ok ]

.. your system is not ready for use by Virtualmin.

This is a bug in /usr/share/webmin/apache/ in the function "test_config":

if ($out && $out !~ /syntax\s+ok/i) {

This line won't work with the above line output by Gentoo apache2ctl configtest. The following will:

if ($out && $out !~ /(syntax|Checking).* ok/i) {

Needs review


Thanks - I'll fix this in the next Webmin release.