Virtualmin show page source code insted of login page


We have try to change the webmin listening port in miniserv.conf file and since then webmin/virtualmin show web page code instead of the login page as if perl is not interpreting the page anymore. We tried to revert the change maid in the page but it doesn’t fix the issue.
Can anyone help?


Hmm, it sounds as if there may be some other changes in that config file as well.

If you happen to have another miniserv.conf file that’s using the defaults, that may help.

However, what is the output of the following commands:

grep port= /etc/webmin/miniserv.conf grep addtype_cgi= /etc/webmin/miniserv.conf grep mimetypes= /etc/webmin/miniserv.conf grep eval_package= /etc/webmin/miniserv.conf

Thank for your help. I did compare the config file with an other and they look the same. Here the result of your commands.

grep port= /etc/webmin/miniserv.conf port=10000 grep addtype_cgi= /etc/webmin/miniserv.conf

grep mimetypes= /etc/webmin/miniserv.conf

grep eval_package= /etc/webmin/miniserv.conf

Hmm, so there wasn’t anything in there for “eval_package”, or “addtype_cgi”?

You may want to try adding these two lines to the end of your miniserv.conf:

addtype_cgi=internal/cgi eval_package=1

After doing that, restart Webmin with this command:

/etc/init.d/webmin restart

Once you do that, does it work properly?


You got it!