Mehic.info

VirtualMin access problems

I was unable to access VirtualMin logging page since the Webmin logging page was shown when accessing through port 10000. So, the Webmin works fine, but VirtualMin doesn’t. I look for log errors in

 nano /var/webmin/miniserv.error

and found following line :

Perl module Authen::PAM needed for PAM is not installed : Can't locate Authen/PAM$
BEGIN failed--compilation aborted at (eval 17) line 1.

Solution is as fallows :

cd /tmp
wget http://www.perl.com/CPAN/authors/id/N/NI/NIKIP/Authen-PAM-0.16.tar.gz
tar xvzf Authen-PAM-0.16.tar.gz
cd Authen-PAM-0.16
perl Makefile.PL
make
make install
After that everything should be fine now. To check whether the module has been loaded or not do the following command.
perl -e 'use Authen::PAM; print "Installation succestul.\n"'
and now you just need to restart webmin :
service webmin restart
If you got the error such as
checking for C compiler default output file name... configure: error: C compiler cannot create executables
you must install gcc and g++ libraries with yum before installation of PAM, so type :
yum install gcc
yum install g++
Enjoy!