Web Hosting Talk







View Full Version : Can't manage sites!


Matthew.A
02-21-2002, 08:27 AM
Oh no - i'm having one of those days - Further to my "HTTP 500 - Internal server error" message below - I took the opportunity to delete an old site that had been disabled for ages.... Now in the Server Management, I can see all the sites, but when I click to manage on of them I get "File not found" - grrrrrrr!!!! Ideas please :) (wish I hadn't got out of bed this morning now!!)

Matthew.A
02-21-2002, 12:25 PM
Phew found this:---
Sun cobalt Knowledge base 020205-000003
===================================
Telnet to the server as admin and <code>su -</code> to root.

Create a file called fixsite.pl and copy the following into it.<br>
chmod the file to 755 and run it.

#!/usr/bin/perl
# creates the admin server pages for all domains on a RaQ 3 or RaQ 4

require Cobalt::Layout;
require Cobalt::Admserv;
require Cobalt::Vsite;
require Cobalt::Meta;
use Cobalt::Product;

foreach my $vhost (Cobalt::Vsite::vsite_list()) {
next unless ($$vhost[1]);
my $fqdn = $$vhost[1];
my ($group) = Cobalt::Meta::query("type" => "vsite",
"keys" => ["name"],
"where" => ["name", "<>", "default",
"and", "fqdn", "=", "$fqdn"]);
# next if($group eq "home");
if($group) {
warn "creating admserver pages for group: $group site name: $fqdn\n";
Cobalt::Layout::layout_siteManage($group, $fqdn);
Cobalt::Admserv::admserv_set_access(qq[$AdminPages_dir/siteManage/$group], 'require', 'group', $group);
unlink("$AdminPages_dir/siteManage/$fqdn") if (-l "$AdminPages_dir/siteManage/$fqdn");
symlink("$AdminPages_dir/siteManage/$group", "$AdminPages_dir/siteManage/$fqdn");
} else {
warn "unkown fqdn: $fqdn or group: $group\n";
}
}

The final step will be to change directory to /usr/admserv/html/.cobalt/siteManage and rebuild a symlink. Type:
ln -s /usr/admserv/html/.cobalt/siteManage/home "IP address of the server"
without the quotes for the IP address.
===================================
Which fixed it - now to try and sort out my mail problems!!! ahhh!!!