Welcome, Guest
Please Login or Register.
Lost Password?
cant get to the vm/wm log on page (1 viewing)
Post Reply

TOPIC: cant get to the vm/wm log on page

#15539
willrendell (User)
Posts: 26
graphgraph
Re:cant get to the vm/wm log on page 2008/08/08 11:40  
Thanks Joe

I have just sent you an email


Will
  The administrator has disabled public write access.
#15556
Joe (Admin)
Posts: 4084
graph
Re:cant get to the vm/wm log on page 2008/08/08 15:10  
Just to follow up in public, just in case anyone is searching and hitting this problem, or something similar:

web-lib-funcs.pl (where most Webmin core functions live) was corrupted, and missing about 100 lines midway through...when I did a Perl syntax check on web-lib.pl and web-lib-funcs.pl the problem was immediately obvious. I don't know why/how the corruption occurred, but replacing the file with the original solved the problem.
  The administrator has disabled public write access.
#15563
willrendell (User)
Posts: 26
graphgraph
Re:cant get to the vm/wm log on page 2008/08/09 04:13  
Hi Joe

Thanks for your help :) much appreciated

Can you please tell me the location that web-lib-funcs.pl lives please and also where can I get an original file from? Because its done it again :(

I am sure it was a dirty shut down that might of caused the problem in the first place as this is what has just happend and caused the problem once more :(

I think as soon as I get it up I am going to back everything up and build a new box and put VM pro on it!

Thanks


Will
  The administrator has disabled public write access.
#15565
willrendell (User)
Posts: 26
graphgraph
Re:cant get to the vm/wm log on page 2008/08/09 04:21  
Update

Ok I think I have found where the file lives

/usr/share/webmin

now all I need is to find an original file :)


WIll
  The administrator has disabled public write access.
#15566
andreychek (Moderator)
Posts: 592
graphgraph
Re:cant get to the vm/wm log on page 2008/08/09 04:48  
Hi Will,

First off, I'll offer that it's a little unusual for files to become corrupted that frequently. You might want to verify that you aren't having any hard drive issues.

For example, do you see anything unusual after running "dmesg" from the command line? Sometimes when a disk is having problems you'll see errors towards the end of the dmesg output.

That said, the file /usr/share/webmin/web-lib-funcs.pl is part of the Webmin package.

You can download the Webmin source here:

http://webmin.com/download.html

Verify that you're downloading the right version -- it sounds like you're running Debian or Ubuntu, meaning you can check what Webmin version you have by running:

dpkg -l webmin

After downloading Webmin, you can unpack that and copy the web-lib-funcs.pl over top of your corrupted one.
-Eric
  The administrator has disabled public write access.
#15567
willrendell (User)
Posts: 26
graphgraph
Re:cant get to the vm/wm log on page 2008/08/09 05:31  
Hi

Thanks for your reply

I have now got webmin up and running again :)

After logging in to vm/wm I noticed that there were some updates that needed installing, so I installed them. They all looked like they installed fine :) So I rebooted and I could still log in on port 10000 all good so far. I then tried to get to one of my sites and nothing displays, not even an error. I have tried from a different workstation and even from a differenr network with out any joy.

Everything else is working ok mail, usermin, etc

Could one of the updates caused this or could it of been something to do with the webmin file?


Thanks


Will
  The administrator has disabled public write access.
#15568
willrendell (User)
Posts: 26
graphgraph
Re:cant get to the vm/wm log on page 2008/08/09 06:07  
update

I know that apache is running as when I try and browse to a non existent page I get an apache 404, I have also added a new domain with directory browsing enabled and thats working ok. Whats not working is a PHP-nuke site and a wordpress site.

I hope the above info sheds any more light on my problem!

Thanks


Will
  The administrator has disabled public write access.
#15569
willrendell (User)
Posts: 26
graphgraph
Re:cant get to the vm/wm log on page 2008/08/09 06:38  
ok I think I am getting somewhere, a .htm file is working so I guess it must be a PHP thing, but I am unsure on what to do next?

Sometimes I wonder if its worth me trying to move away from MS based products, I hope it will be worth it, cos at the moment i feel like a school kid again with all this learning lol


Thanks


Will
  The administrator has disabled public write access.
#15570
willrendell (User)
Posts: 26
graphgraph
Re:cant get to the vm/wm log on page 2008/08/09 07:05  
Right, this is where I am up to now.

from webmin I went to the PHP configuration link and this is what I got

"No PHP configuration files were found. Adjust the module configuration to set the correct path to the global PHP config file."

This is what is in the module config

/etc/php4/apache/php.ini=Configuration for mod_php
/etc/php4/cgi/php.ini=Configuration for scripts run via CGI
/etc/php4/cli/php.ini=Configuration for command-line scripts

when I click on save goes it just goes back to the first error

No PHP configuration files were found...........

What do I have to do?


Thanks



Will
  The administrator has disabled public write access.
#15578
Joe (Admin)
Posts: 4084
graph
Re:cant get to the vm/wm log on page 2008/08/09 12:39  
So, Apache and Webmin/Virtualmin are wholly unrelated--one running has no impact on the other. And, of course, Webmin/Virtualmin do not use PHP for anything, so that's also a dead end (Webmin and Virtualmin are predominantly Perl, with a touch of JavaScript, Java, and C).

If you're seeing file corruptions regularly (even once is suspicious), there is something serious wrong on your system. Package updates should never lead to something like that unless the system were shutdown in the middle of the process of installing something (and even then, I would think it probably wouldn't act this way...though that doesn't mean shutting down improperly is recommended).

Is this, perhaps, a virtualized system of some sort? I can imagine something like this happening if you have two virtual instances running off of the same disk image. I'm having trouble thinking of any other cause of this particular behavior, short of actually actively editing files and removing pieces of them, which I'm pretty sure is not what's happening. ;-)
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.