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

Re: [cobalt-users] Raq4 admin server lost the sites



> Hi.
>
> On a Raq4 I am running, I went to add a new site, no problem. I then went
to
> edit that sites settings, and the admin server displayed a file not found
> page. On further investigation, the admin server has mislaid all the
sites,
> even though they are all functioning sweetly.
>
> The url http://server.domain.net:81/.cobalt/siteManage/www.sitedomain.com/
>
> Returns bog standard file not found.
>
> So..
>
> What could have caused this?
> Anyone had it before?
> Anyone any idea of how to fix?
> Where is the admin server's site stuff stored?
>
>
> Any answers appreciated.
>
>
> Step
>
Step,
This was posted, by one of the gurus of the forum, for sitemanage problems.
I used it and it fixes the problems. I'm not sure if this will help you with
your exact problem. My problem was when I went to the GUI, it wasn't there
anymore. Anyway, here is what I did:
-------------------------------------------------------------
#begin
#!/usr/bin/perl
# file fixsite.pl | chmod this file 755
# 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;

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],'r
equire', '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.

#end
-------------------------------------------------------------