Virtualmin show page source code insted of login page

5 posts / 0 new
Last post
#1 Fri, 10/18/2013 - 11:57
cognat

Virtualmin show page source code insted of login page

Hi,

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?

Fri, 10/18/2013 - 12:31
andreychek

Howdy,

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
Fri, 10/18/2013 - 14:27 (Reply to #2)
cognat

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
mimetypes=/usr/libexec/webmin/mime.types

grep eval_package= /etc/webmin/miniserv.conf
Fri, 10/18/2013 - 18:23
andreychek

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?

-Eric

Mon, 10/21/2013 - 07:55 (Reply to #4)
cognat

You got it! Thank!

Topic locked