Web Hosting Talk


Go Back   Web Hosting Talk : Web Hosting Main Forums : Dedicated Server : Can't manage sites!
Reply

Dedicated Server Current and past experiences with dedicated server providers, bandwidth, and server performance. Review managed and unmanaged dedicated web servers, discuss both Windows and Unix dedicated server solutions, and discuss dedicated hosting providers. If your service is unavailable, please click here.

 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-21-2002, 08:27 AM
Matthew.A Matthew.A is offline
View Beta Profile
WHT Addict
 
Join Date: Jan 2001
Location: UK
Posts: 133
* Can't manage sites!

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!!)

__________________
## # Mat # ##

Reply With Quote
Sponsored Links
  #2  
Old 02-21-2002, 12:25 PM
Matthew.A Matthew.A is offline
View Beta Profile
WHT Addict
 
Join Date: Jan 2001
Location: UK
Posts: 133
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:roduct;

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!!!

__________________
## # Mat # ##

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement: