Virtualmin Apache feature will not enable.

I am using Virtualmin to set up a lot of web hosts. For some reason, whenever I try to enable the Apache plugin, I get this error.

Failed to save enabled features : The Apache webserver does not appear to be installed on your system, or has not yet been set up properly in Webmin's Apache Webserver module. If your system does not use Apache, it should be disabled in Virtualmin's module configuration page.

Apache is very installed, and works perfectly with Webmin. It may be relevant that we are using apache on a Bitnami server.



Howdy -- normally, Apache is installed and configured by default when running the Virtualmin installer.

How did you go about performing the Virtualmin installation... did you by chance use the Virtualmin script?

A few other questions --

What is the output of this command:

dpkg -l 'apache*'

And if you go into Webmin -> Servers -> Apache -> Module Config -> System Configuration, what are these set to:

Apache server root directory
Path to httpd executable
Path to the apachectl command

Apache is not installed through apt, so it does not show up in dpkg.

Apache server root directory: /opt/bitnami/apache2 path to httpd executable: /opt/bitnami/apache2/bin/httpd path to the apachectl command: /opt/bitnami/apache2/bin/apachectl

It is set up this way because we are using Bitnami to deploy the stack.

Yeah, I do suspect it's related to bitnami... it's just a matter of determining what's not configured quite right.

It may be that something in that System Configuration screen is awry.

What you may need to do is go through all the options on that screen, and make sure that each of the files and paths defined in there exist.

If any of the options point to a path/file that doesn't exist, that could cause the error you're seeing.