[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Site Management Pages Gone (Monkey Wrench Goes Nowhere)



> 
> Jeff,
> 
> The fixsite.pl from Sun is actually easier to use than the 
> Cobalt Aid script.
> 
> You can get it from the link within the Sun knowledgebase or 
> here it is: #!/usr/bin/perl # creates the admin server pages 
> for all domains on a RaQ 3 or RaQ 4 # except for the home site
> 
> 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/siteMan
> age/$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";
> 	}
> 
> Just put that in a file named fixsite.pl and
> su
> cd ~admin
> chmod 700 fixsite.pl
> ./fixsite.pl
> 
> That's it.
> 
> 
> 
> Ken Marcus
> ken@xxxxxxxxxxxxxxxx
> 
>


Ken,

Thanks a lot for your reply!

I ran the script. The pages all seem to rebuild, but I still get the "URL
not found error" when I attempt to access them. I rebooted the server, and
still no dice.

Oh, when I try to run it from ~admin, I get "no such file or directory" and
the script aborts.

The script apparently came pre-installed on my machine in the root home
directory - I ran it from there and it worked. That script said to CHMOD to
755 before running.

Are there more detailed instructions on this in the Knowledgebase? If so
I'll look them up when I get back from work this evening. I need basic
things like which user I should be, exactly which directory I should be
running this from, etc.

Thanks again for your help.

Jeff