Cannot Access Virtualmin or Webmin

3 posts / 0 new
Last post
#1 Tue, 02/28/2017 - 12:32
samrich

Cannot Access Virtualmin or Webmin

Specs: 2GB RAM, CentOS 7, Virtualmin 5.06, Fail2ban, Firewalld, PHP 5.4, PHP 5.6, Apache

Have loaded two domains to the shared system and all was going well. Created some databases to support wordpress. Got wordpress installed. Started to have issues accessing wordpress, trouble locating the database (mysql, or I guess mariadb, default). Was getting mod_fcgi errors in the logs. Then started having problems with access Virtualmin. Now, I cannot access ipaddress:10000. Sometimes I can get in if I restart webmin, doesn't last very long until links in the menu on the left fail to load on the right.

I still have SSH access. And when I run virtualmin check-config I get the following results:

Your system has 1.79 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 can support per-domain outgoing IP addresses, but is not currently configured to do so. This can be setup in the Postfix Mailserver module.

Apache is installed.

The following PHP versions are available : 5.4.16 (/bin/php-cgi), 5.6.25 (/opt/rh/rh-php56/root/usr/bin/php-cgi)

PHP-FPM support was not detected : No FPM configuration directory found

Webalizer is installed.

Apache is configured to host SSL websites.

ERROR: MySQL does not appear to be installed and running on your system, or has not yet been set up properly in Webmin's MySQL Database module. If your system does not use MySQL, it should be disabled in Virtualmin's module configuration page.

I've tried stopping the firewall and fail2ban, no change.

What have I done? I'm about to wipe the server and start over.

-- UPDATE: I can no longer restart webmin and get access to ipaddress:10000

Tue, 02/28/2017 - 19:40
samrich

Well, reinstalled. So far, so good.

Tue, 02/28/2017 - 19:51
Diabolico
Diabolico's picture

MySQL error you got doesnt have anything to do with firewall or fail2ban, but it would be good to put your IP in whitelist with f2b especially if you are going to play around. To begin run this systemctl status mariadb so we can see if MySQL is even running on your system.

For the second problem, unable to access post 10000, this could be caused by f2b blocking your IP or even Webmin if you failed to login several times. Easiest way is to log on your SolusVM account and use the console access, log into your server and run systemctl stop fai2ban. Once f2b is off try to log again on Webmin port and see if it works.

To be honest i never liked firewalld because i think iptables are more appropriate for servers and easier to use. It could be there are some options with firewalld that i'm not aware for them but they are blocking your access with some ports. What i find it strange is Centos 7 using firewalld by default because every hosting company i know is using Centos 7 template with enabled iptables instead of firewalld.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Topic locked