Koozali.org: home of the SME Server

server-manager was not found

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: server-manager was not found
« Reply #15 on: May 22, 2008, 10:47:51 PM »
the joomla configuration directives, would this be something like the contents of a template called 92joomla ?
Yep, but I guess they need to be slightly modified, can you paste the content of that file for me?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: server-manager was not found
« Reply #16 on: May 22, 2008, 10:48:35 PM »
YES! I can get into the server-manager again.
Will do the rest later
I knew you would... good luck with the rest!
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline EdelingF

  • *****
  • 215
  • +0/-0
Re: server-manager was not found
« Reply #17 on: May 25, 2008, 10:08:58 PM »
Cactus,

Ik took me a while to copy/paste the text from the 92joomla template, but here it is:

Code: [Select]
{
    $OUT = "";
    my $allow = 'all';
    my $pass = '0';
    my $satisfy = 'all';
    my $name = $joomla{'Name'} || 'Joomla CMS';

    for ('exit-if-none')
    {
      if ($joomla{'PublicAccess'})
      {
          if ($joomla{'PublicAccess'} eq 'none')
          {
           next;
          }
          elsif ($joomla{'PublicAccess'} eq 'local')
          {
            $allow   = $localAccess;
            $pass    = 0;
            $satisfy = 'all';
          }
          elsif ($joomla{'PublicAccess'} eq 'local-pw')
          {
            $allow   = $localAccess;
            $pass    = 1;
            $satisfy = 'all';
          }
          elsif ($joomla{'PublicAccess'} eq 'global')
          {
            $allow   = 'all';
            $pass    = 0;
            $satisfy = 'all';
          }
          elsif ($joomla{'PublicAccess'} eq 'global-pw')
          {
            $allow   = 'all';
            $pass    = 1;
            $satisfy = 'all';
          }
          elsif ($joomla{'PublicAccess'} eq 'global-pw-remote')
          {
            $allow   = $localAccess;
            $pass    = 1;
            $satisfy = 'any';
          }
      }

      $OUT .= "#------------------------------------------------------------\n";
      $OUT .= "# joomla - $joomla{'Name'}\n";
      $OUT .= "#------------------------------------------------------------\n";

      {
        if ((exists $joomla{'URL'}) && ($joomla{'URL'} ne ''))
        { $OUT .= "Alias  /$joomla{'URL'}  /opt/joomla\n"; }
      }

      $OUT .= "Alias  /joomla  /opt/joomla\n";

      $OUT .= "\n";
      $OUT .= "<Directory /opt/joomla>\n";
      $OUT .= "    order deny,allow\n";
      $OUT .= "    deny from all\n";
      $OUT .= "    allow from $allow\n";
      if ($pass)
      {
          $OUT .= "    AuthName \"$joomla{'Name'}\"\n";
          $OUT .= "    AuthType Basic\n";
          $OUT .= "    AuthExternal pwauth\n";
          $OUT .= "    require valid-user\n";
          $OUT .= "    Satisfy $satisfy\n";
      }
      $OUT .= "    AddType application/x-httpd-php .php .php3 .phtml\n";
      $OUT .= "    php_admin_value open_basedir /opt/joomla:/tmp\n";
      $OUT .= "    php_admin_value display_errors 1\n";
      $OUT .= "</Directory>\n";
    }
}

I hope this is the one we're looking for.
It's located in /etc/e-smith/templates/etc/httpd/conf/httpd.conf/
...

Offline asgeir

  • 1
  • +0/-0
Re: server-manager was not found
« Reply #18 on: May 28, 2008, 07:00:36 AM »
But a quick qestion if I may, not regarding joomla, but I installed user-manager and well, same thing happend.

Any way to restore the server-manager at all? :-)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: server-manager was not found
« Reply #19 on: May 28, 2008, 07:23:23 AM »
But a quick qestion if I may, not regarding joomla, but I installed user-manager and well, same thing happend.

Any way to restore the server-manager at all? :-)
First of all it is not very nice to hijack a topic of others, you should at least have taken th effort to create a new thread with the proper subject. Furthermore I have to direct you to the bug tracker as this is non standard behavior for a contrib, you should report your issue there and be as precise as possible in stating what you did and what you see. Saying that the same happens is not really helpful to any of us, post relevant results from the error logs or error messages you see, so people who know ho to judge the information get the possibility to do so, in order to help you out.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline EdelingF

  • *****
  • 215
  • +0/-0
Re: server-manager was not found
« Reply #20 on: June 02, 2008, 08:54:37 PM »
Cactus,

Trying to read the Joomla template, I don't see any lines I think should be changed.
If I try this, is there a risk a break up my server?
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: server-manager was not found
« Reply #21 on: June 02, 2008, 09:12:23 PM »
Cactus,

Trying to read the Joomla template, I don't see any lines I think should be changed.
If I try this, is there a risk a break up my server?
Not sure, but you can try it like this. After that regenerate the configuration file:
Code: [Select]
expand-template /etc/httpd/conf/httpd.confTest the ne configuration:
Code: [Select]
httpd -tIf OK restart your webserver:
Code: [Select]
sv t httpd-e-smithIf it is not OK, post the error here or try to resolve it.

If you run in to troubles you can easily remove the directory I told you to create in an earlier post (or remove the template fragment(s)) in it, regenerate the configuration file and restart your webserver (with commands listed above).
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline EdelingF

  • *****
  • 215
  • +0/-0
Re: server-manager was not found
« Reply #22 on: June 09, 2008, 09:43:42 PM »
Cactus,

I did what you told me and all went ok (I did not break up my server), but the virtual domain still end in the Ibay.
Do I simply remove the Ibay now or should there be some changes in one of the files?

00Setup
Code: [Select]
{
    use esmith::DomainsDB;
    # Convert the passed hash for the domain object back into an object.
    $domain = bless \%domain, 'esmith::DB::db::Record';

    # Make scalars from some of the properties of the domain
    $virtualHost = $domain->key;
    $virtualHostContent = $domain->prop('Content');
    $OUT = "";
}

02ServerName
Code: [Select]
    ServerName {$virtualHost}
25SSLDirectives
Code: [Select]
{
    return "    # skipping SSL directives\n" unless $port eq "443";

    return "" unless $modSSL{'status'} eq 'enabled';

    $OUT =  <<SSL_END;
    # SSL Directives
    SSLEngine on
SSL_END
}

26RewriteTraceAndTrack
Code: [Select]
{
    $OUT =<<'HERE';
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
HERE
}

50DirectoryIndex00
Code: [Select]
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.

DirectoryIndex index.htm index.html index.shtml index.cgi

50DirectoryIndex00PHP
Code: [Select]
{
    return "" unless (defined $php{'status'} and $php{'status'} eq 'enabled');

    my @directives = qw(
        index.htm index.html index.shtml index.cgi
        index.php index.php3 index.phtml
       );

    $OUT = "DirectoryIndex @directives\n";
}

85DefaultAccess
Code: [Select]
# First, we configure the "default" to be a very restrictive set of
# permissions.

<Directory />
    Options None
    AllowOverride None
    order deny,allow
    deny from all
    allow from none
</Directory>

92joomla
Code: [Select]
{
    $OUT = "";
    my $allow = 'all';
    my $pass = '0';
    my $satisfy = 'all';
    my $name = $joomla{'Name'} || 'Joomla CMS';

    for ('exit-if-none')
    {
      if ($joomla{'PublicAccess'})
      {
          if ($joomla{'PublicAccess'} eq 'none')
          {
           next;
          }
          elsif ($joomla{'PublicAccess'} eq 'local')
          {
            $allow   = $localAccess;
            $pass    = 0;
            $satisfy = 'all';
          }
          elsif ($joomla{'PublicAccess'} eq 'local-pw')
       {
            $allow   = $localAccess;
            $pass    = 1;
            $satisfy = 'all';
          }
          elsif ($joomla{'PublicAccess'} eq 'global')
          {
            $allow   = 'all';
            $pass    = 0;
            $satisfy = 'all';
          }
          elsif ($joomla{'PublicAccess'} eq 'global-pw')
          {
            $allow   = 'all';
            $pass    = 1;
            $satisfy = 'all';
          }
          elsif ($joomla{'PublicAccess'} eq 'global-pw-remote')
          {
            $allow   = $localAccess;
            $pass    = 1;
            $satisfy = 'any';
          }
      }

      $OUT .= "#------------------------------------------------------------\n";
      $OUT .= "# joomla - $joomla{'Name'}\n";
      $OUT .= "#------------------------------------------------------------\n";

      {
        if ((exists $joomla{'URL'}) && ($joomla{'URL'} ne ''))
        { $OUT .= "Alias  /$joomla{'URL'}  /opt/joomla\n"; }
      }

      $OUT .= "Alias  /joomla  /opt/joomla\n";

      $OUT .= "\n";
      $OUT .= "<Directory /opt/joomla>\n";
      $OUT .= "    order deny,allow\n";
      $OUT .= "    deny from all\n";
      $OUT .= "    allow from $allow\n";
      if ($pass)
      {
          $OUT .= "    AuthName \"$joomla{'Name'}\"\n";
          $OUT .= "    AuthType Basic\n";
          $OUT .= "    AuthExternal pwauth\n";
          $OUT .= "    require valid-user\n";
          $OUT .= "    Satisfy $satisfy\n";
      }
      $OUT .= "    AddType application/x-httpd-php .php .php3 .phtml\n";
      $OUT .= "    php_admin_value open_basedir /opt/joomla:/tmp\n";
      $OUT .= "    php_admin_value display_errors 1\n";
      $OUT .= "</Directory>\n";
    }
}

template-begin
Code: [Select]
<VirtualHost {$ipAddress}:{$port}>
template-end
Code: [Select]
</VirtualHost>
I can't really find a line that redirects to /opt/joomla, so I think that's the problem?
...