[SOLVED] Blank page after logging into Virtualmin

10 posts / 0 new
Last post
#1 Sun, 11/15/2015 - 01:43
colech

[SOLVED] Blank page after logging into Virtualmin

I see the login page just fine to access Virtualmin, but as soon as I enter credentials, it sends me to a blank page with no errors and essentially zero content other than empty divs.

I have CentOS 7 and the only thing that has changed is that I upgraded from MariaDB 5.5 (MySQL 5.5 equivalent) to MariaDB 10 (MySQL 5.6 equivalent).

I'm not sure how to turn on error reporting for the Virtualmin admin page to do debugging and don't see relevant errors in /var/log/httpd/error_log.

Sun, 11/15/2015 - 17:18
andreychek

Howdy,

While it's possible to experience issues when upgrading MySQL/MariaDB, that shouldn't be the issue you'd see. It shouldn't effect Virtualmin at all, since Virtualmin isn't using those for storing data.

Do you happen to see any errors being logged into /var/webmin/miniserv.error when that occurs?

-Eric

Sun, 11/15/2015 - 18:54 (Reply to #2)
colech

Thank you Eric... didn't know where the error logs were for webmin. I check them and here's what happens each time I hit refresh on the blank page of webmin (after login).

Warning: something's wrong at /usr/libexec/webmin/authentic-theme/authentic.pl line 8.
Error: Failed to query Postfix config command to get the current value of parameter virtual_alias_maps:
[15/Nov/2015:16:35:55 -0800] [123.123.123.123] Document follows : This web server is running in SSL mode. Try the URL <a href='https://example.com:10000/'>https://example.com:10000/</a> instead.<br>
[15/Nov/2015:16:35:55 -0800] [123.123.123.123] Document follows : This web server is running in SSL mode. Try the URL <a href='https://example.com:10000/'>https://example.com:10000/</a> instead.<br>
Sun, 11/15/2015 - 22:02
andreychek

Howdy,

Hmm, what is the output of these two commands:

which postconf
postconf -n
rpm -qa | grep postfix
Mon, 11/16/2015 - 11:40 (Reply to #4)
colech

Here's what I get for the which command. For postconf -n, I get "command not found" and no results for the rpm command.

[root@server ~]# which postconf
/usr/bin/which: no postconf in (/root/perl5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
Mon, 11/16/2015 - 11:55
andreychek

Ah, I think that's the problem then. It sounds like Postfix isn't installed.

How did you initially perform the Virtualmin installation? Was that done with the install.sh script?

If so, Postfix should be installed.

If Virtualmin were installed manually though that could explain it.

But if the install.sh were used, it sounds like it was later removed... you may need to review your system to determine how it was removed, and whether other packages you require were removed as well.

You may want to make a backup of your /etc/postfix directory, and then try reinstalling Postfix though.

-Eric

Mon, 11/16/2015 - 14:44 (Reply to #6)
colech

Oh no! I wonder what happened there? I did install Virtualmin through the install.sh script. I am really confused now because emails are still being sent although Postfix is not properly installed. I am using Postfix to send email via SMTP through SendGrid using these instructions: https://sendgrid.com/docs/Integrate/Mail_Servers/postfix.html

BUT here's where I'm confused... I don't have a /etc/postfix/main.cf file, instead it is /etc/postfix.main.cf.rpmsave.

I don't remember ever removing Postfix... the only thing I can remember removing recently was this when I decided to use php-mysql instead: yum remove php-mysqlnd

So what would be the proper way to install Postfix on CentOS 7? (I will be making backups of course.)

Mon, 11/16/2015 - 15:29
andreychek

Well, let's try this... maybe somehow another program was installed into it's place.

What is the output of this command:

netstat -anlp | grep :25

That will show what is listening on port 25, the email port.

-Eric

Mon, 11/16/2015 - 16:48
colech

Hmmm take it back. I tried sending something on the server and apparently it isn't delivering mail after all. Also, netstat -anlp | grep :25 has no results.

Thu, 11/19/2015 - 00:49
colech

PROBLEM FIXED! So Postfix was not installed after all but I know it was at one point. No idea what happened. Anyway, here's what I did to get it back.

I followed the instructions here: https://www.virtualmin.com/node/36197#comment-144622

And then in CentOS 7 I did yum install postfix and configured /etc/postfix/main.cf with my needed SMTP settings and did a reboot of the server just to make sure everything was working good... could have also done service postfix restart.

Topic locked