virtualmin navigation/menu not working

20 posts / 0 new
Last post
#1 Tue, 09/16/2008 - 08:22

virtualmin navigation/menu not working

Hello, I logged into my virtualmin panel today/now and i can not manage my domain because the left side menu isn't working. All i see is the domain dropdown list, everything else that should be below it isn't working/showing. I get the following error message:

Content-type: text/html; Charset=iso-8859-1 Module Index Error

Failed to query Postfix config command to get the current value of parameter config_directory:

I have attached a picture of it for your review. i will very much appreciate a help to have this fixed. [img size=460]

Tue, 09/16/2008 - 10:58


What is the output of this command:

find /etc/webmin/ | xargs grep postfix_config_command

On my system, it is:


At which point, if I type:

ls -l /usr/sbin/postconf

I get:

-rwxr-xr-x 1 root root 63660 Sep 9 19:55 /usr/sbin/postconf

So I'm curious what your system shows there, and if the command it's trying to use exists.


Tue, 09/16/2008 - 11:20 (Reply to #2)

Hi andrey, i don't understand what you your reply. could u pls be more clear?

Tue, 09/16/2008 - 11:24 (Reply to #3)

Hello --

Log into your server over SSH, and run this command:

find /etc/webmin/ | xargs grep postfix_config_command

And paste the output into the forum here.


Tue, 09/16/2008 - 11:31 (Reply to #4)

hello andreycheck,
here is the SSH result of the command:


Tue, 09/16/2008 - 11:33 (Reply to #5)

Okay, that looks good!

Now the second step -- what is the output of this command:

/usr/sbin/postconf | grep command_directory


Tue, 09/16/2008 - 12:19 (Reply to #6)

hi andreychek,
here is the result for the command:
command_directory = /usr/sbin

The goodnews is that nav menu is back. I rebooted the server from SSH and after which i logged back in into virtualmin and the virtualmin navigation menu started showing.

The only problem now is the FTP details of my sites are no longer working. It was working fine until i started experiencing that same navigation problem. I can not login into my site FTP details. i keep getting the following error: can't exterblish connection.

And also mysite can not connect to the MySQL database again which was working fine before. i got this error: Mysql error:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Tue, 09/16/2008 - 14:05 (Reply to #7)

Are the FTP and MySQL services started?

If you log into Virtualmin, click "System Information", then click the "Status" button in the middle of the screen.

Verify that "ProFTPd FTP Server" and "MySQL Database Server" are both running.

Tue, 09/16/2008 - 14:35 (Reply to #8)

andreychek, thanks for your help so far.
I have checked. ProFTPd FTP Server" and "MySQL Database Server" are both running fine.

I am still not able to login to FTP

Tue, 09/16/2008 - 15:20 (Reply to #9)

Do you have any ideas as to anything that may have changed just before you started seeing those problems?

The error you're seeing, "Can't establish connection", tells me that either FTP isn't running properly, or perhaps a firewall is blocking you.

Did you recently install a firewall on that server?

On the server itself, can you log into SSH and run these commands:

1. netstat -an | grep :21
2. iptables -L -n


Tue, 09/16/2008 - 16:21 (Reply to #10)

hi, all i did was click on feature update button i saw on virtualmin when i logged in. normally feature update where usually below sysmtems information when one login. but this update button wa the only this on the page this time. nothing else was showing on virtualmin when i login so i clickd on the update button.

Thats all i did before this problem started. below are the result for me commands

1. netstat -an | grep :21
tcp 0 0* LISTEN

2. iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- udp dpt:20
ACCEPT udp -- udp dpt:21
ACCEPT udp -- udp dpt:53
ACCEPT tcp -- tcp dpt:20000
ACCEPT tcp -- tcp dpt:10000
ACCEPT tcp -- tcp dpt:443
ACCEPT tcp -- tcp dpt:80
ACCEPT tcp -- tcp dpt:993
ACCEPT tcp -- tcp dpt:143
ACCEPT tcp -- tcp dpt:995
ACCEPT tcp -- tcp dpt:110
ACCEPT tcp -- tcp dpt:20
ACCEPT tcp -- tcp dpt:21
ACCEPT tcp -- tcp dpt:53
ACCEPT tcp -- tcp dpt:25
ACCEPT tcp -- tcp dpt:22

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Tue, 09/16/2008 - 16:38 (Reply to #11)

Yeah, I'm not seeing any reason why your server wouldn't be accepting connections.

Perhaps one of the log files might have some information in it.

Barring that, the only other thing I can offer is that perhaps I could log in and take a look myself.

If you want me to take a look, you're welcome to send me login details for both root, and a user, to


Tue, 09/16/2008 - 17:09 (Reply to #12)

Hi Eric,
I just emailed you my server details. the email should come from

Tue, 09/16/2008 - 17:26 (Reply to #13)

Hi there,

So, I have good news, and bad news :-)

The good news is that I was able to log into FTP just fine using the information you gave me. It was actually quite speedy!

Which I suppose is bad news, in that I'm not sure why it isn't working for you.

I'd normally suggest trying both Active and Passive FTP modes, but both of them worked well for me, so that's unlikely to be the problem.

Is it possible it's a problem with your FTP client, or maybe even your ISP?

Tue, 09/16/2008 - 17:43 (Reply to #14)

well thank you very much. let me assume it's the ISP though it's the isp i've always been using. i also used it to login ealier. i was even logged-in before this problem started. as regards the FTP client. i don;t think so because i have tried 2 FTP clients (CuteFTP and FileZilla) both were working and suddenly stoped so i guess it might be my ISP.

For now i have used the WebFTP in Webmin to upload things i wanted to upload. Thank you very much.

I have one final question though. How can i have a domain/virtual server point to a folder inside of public_html instead of public_html/

i have a directory called community created inside the public_html (public_html/community) and i want my domain to point to the community directory instead of stoping at public_html/

How can i do this? i have tried ediing the domain home directory but not reflecting

Tue, 09/16/2008 - 17:59 (Reply to #15)

Regarding FTP -- I've also seen some routers have seemingly random problems not unlike this. You might consider turning your router off and back on to see if it makes a difference.

Regarding the domain pointing to a directory -- it sounds like you want one of the following options, each of which is in Services -> Configure Website.

If you want to redirect from public_html to community, then you can go into "Aliases and Redirects", and set a "Permanent URL redirect" from / to .

If you're just looking to change the document root (ie, you want to restrict all web traffic to directories within "community", you can go into -> Document Options and change "Document root directory".

Then be sure to hit "Apply Changes", which restarts Apache, when you're done.

Tue, 09/16/2008 - 18:12 (Reply to #16)

Hi eric,
I'm not using a router. i;m just browing from my laptop.

as regards the domain. i have made the changes inside ->Document Options -> Document root directory to /home/username/public_html/community/

when i visit, it's still not showing the content of the community directory.

Tue, 09/16/2008 - 18:52 (Reply to #17)

It looks like Virtualmin wasn't able to apply the configuration changes you made due to a syntax error in the httpd.conf file:

# /etc/init.d/httpd reload
Reloading httpd: not reloading due to configuration syntax error

We can see the exact error by typing:

# httpd -t
Syntax error on line 1032 of /etc/httpd/conf/httpd.conf:
Redirect to non-URL

So on line 1032, we see:

RedirectPermanent ""

That should actually read something like:

RedirectPermanent ""

It's probably a bug that Virtualmin allows that to be entered without the "http://" on the front -- but if you manually add that, you should be in good shape.

Test the configuration again, and if it's okay, go ahead and restart Apache.

I can fix it if you want, but I'm reluctant to change your httpd.conf without your permission!

Tue, 09/16/2008 - 19:37 (Reply to #18)

Pls Eric,
I will very much appreciate if you can help me fix it. pls you have my very full permission.


Tue, 09/16/2008 - 19:42 (Reply to #19)

Okay, all set!

If you go to "", it works.

If you get a blank screen, it's a problem with your browser cache, hold down shift and click reload, and it will work.

Let me know if that goes the trick. Thanks,

Topic locked