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

Re: [cobalt-users] virtual server admin not available



Hello mailingList,

To restore your Siteadmin pages you need to run the script that I have
added below. telnet or ssh in to your server su to root
create the file in the /tmp directory will work
pico sitefix.pl
copy the code into the screen
save with ctrl X
chmod 700 sitefix.pl
run it
./sitefix.pl

This will only restore the site admin screens after you do this you
will have to go to each siteadmin screen go into site settings and
re-add all your email aliases

To fix the admin screen click on Control Panel
then on network
change whatever is in Host Name to something else test will work
save the screen then put back what was there originally and save the
screen again this will fix you admin screen you will also have to add
your email aliases



####START OF SCRIPT######
#!/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/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";
        }
}


####END OF SCRIPT######



Friday, August 23, 2002, 7:06:00 PM, you wrote:



mvcu> Hello,
mvcu> My RaQ4 server admin section is returning a URL not found error when I try to administer a virtual site on the server after login into the GUI admin utility. 

mvcu> Emails sent to virtual sites on the server are also bouncing

mvcu> All admin url for virtual servers i.e. www.siteName.com/siteadmin is not working either

mvcu> Can someone please let me know how to recover from this.

mvcu> Thanks
mvcu> Temi




mvcu> _____________________________________
mvcu> cobalt-users mailing list
mvcu> cobalt-users@xxxxxxxxxxxxxxx
mvcu> To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
mvcu> http://list.cobalt.com/mailman/listinfo/cobalt-users



-- 
Best regards,
 rdkurth                            mailto:rdkurth@xxxxxxxxxxxx