Koozali.org: home of the SME Server

did the FAQ# 6q12 now lost all Ibays

Dennis Pecynski

did the FAQ# 6q12 now lost all Ibays
« on: August 10, 2002, 03:03:56 AM »
some one tell me what to do, Just wanted to change value in open_basedir for one Ibay...did what I was supposed to do in FAQ 6q12...even was instructed on my progress...when script took  I lost my ibays....they are there but cannot access them from outside..cannot use server manager except on server itself.....I still have email yet.  I cannot see or use my website..Please guide me thru this.

Dennis Pecynski

Re: did the FAQ# 6q12 now lost all Ibays
« Reply #1 on: August 10, 2002, 10:59:18 PM »
Ok I have found by rebooting and watching load sequence I have a syntax error on line 1507....I have the file name and file..could someone please instruct me on how to correct this...IE...do I  type in file and retype syntax?...someway of viewing what is there?...I am not helpless just do not have the knowledge or experience yet..and do not want to srew it up worse.

Any help will be deeply appreciated...Thanks  Dennis

Jon Blakely

Re: did the FAQ# 6q12 now lost all Ibays
« Reply #2 on: August 11, 2002, 06:33:55 AM »
Dennis,

what file is the syntax error in??.

Jon

Dennis Pecynski

Re: did the FAQ# 6q12 now lost all Ibays
« Reply #3 on: August 11, 2002, 07:07:26 AM »
Thanks for the reply...This is exactly what I see on reboot

Starting  httpd-e-smith:  Starting httpd: Syntax error on line 1507 of  /ect/httpd/config/httpd.config:

Invalid command '/sbin/e-smith/expand-template' , perhaps mis-spelled or defined by a modual not included in the server configuration



anything you could guide me through would be deeply apreceated!!

Jon Blakely

Re: did the FAQ# 6q12 now lost all Ibays
« Reply #4 on: August 11, 2002, 08:42:57 AM »
Ok

First off, lets undo what you have done so far

# /sbin/e-smith/db accounts delprop your_i-bay_name PHPBaseDir
# /sbin/e-smith/signal-event ibay-modify your_i-bay_name

then try

# /etc/e-smith/expand-template /etc/httpd/conf/httpd.conf
# /etc/rc.d/init.d/httpd-e-smith restart

post any error messages

Jon

Dennis Pecynski

Re: did the FAQ# 6q12 now lost all Ibays
« Reply #5 on: August 11, 2002, 09:26:54 AM »
I do not have a directory  or file of expand-template

Jon Blakely

Re: did the FAQ# 6q12 now lost all Ibays
« Reply #6 on: August 11, 2002, 09:39:42 AM »
Ok, I wonder where that went??.

# pico /sbin/e-smith/expand-template

and copy and paste the below into it

#!/usr/bin/perl -w

#----------------------------------------------------------------------
# copyright (C) 2002 Mitel Networks Corporation
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
#
# Technical support for this program is available from Mitel Networks
# Please visit our web site www.e-smith.com for details.
#----------------------------------------------------------------------

package esmith;

use strict;
use Errno;
use esmith::util;
use Getopt::Long;
use esmith::config;

tie my %conf, 'esmith::config';

my %options = ();

GetOptions(\%options, 'output_filename=s', 'expand_queue=s');

$options{'template_path'} = $ARGV[0];

$options{'output_filename'} = $options{'template_path'}
    unless ( exists $options{'output_filename'} );


my %args = (
                CONFREF         => \%conf,
                TEMPLATE_PATH   => $options{'template_path'},
                OUTPUT_FILENAME => $options{'output_filename'},
            );

$args{TEMPLATE_EXPAND_QUEUE} = [$options{'expand_queue'}]
  if exists $options{expand_queue};

if ( -f $options{'output_filename'} )
{
    # If the target file exists, preserve its ownership and mode
    use File::stat;

    my $f = stat($options{'output_filename'} );
    $args{UID}   = $f->uid;
    $args{GID}   = $f->gid;
    $args{PERMS} = $f->mode;
}

esmith::util::processTemplate(\%args);

save and chmod to 554 and try to expand httpd again

Dennis Pecynski

Re: did the FAQ# 6q12 now lost all Ibays
« Reply #7 on: August 11, 2002, 09:44:29 AM »
this may sound stupid....I have it in my window...how do I save it?

Dennis Pecynski

Re: did the FAQ# 6q12 now lost all Ibays
« Reply #8 on: August 11, 2002, 09:50:40 AM »
when I put in ...pico /sbin/e-smith/expand-template

the rest came up by itself...did not have to cut and paste

Dennis Pecynski

Re: did the FAQ# 6q12 now lost all Ibays
« Reply #9 on: August 11, 2002, 10:09:43 AM »
figured it out....

Dennis Pecynski

Re: did the FAQ# 6q12 now lost all Ibays
« Reply #10 on: August 11, 2002, 10:16:55 AM »
ok saved expand-template...tryed script again...cut and paste...so no typo's
and got this responce

bash: /ect/e-smith/expand-template: no such file or directory

Rich Lafferty

Re: did the FAQ# 6q12 now lost all Ibays
« Reply #11 on: August 11, 2002, 11:33:53 AM »
Dennis Pecynski wrote:
>
>
> ok saved expand-template...tryed script again...cut and
> paste...so no typo's
> and got this responce
>
> bash: /ect/e-smith/expand-template: no such file or directory

Well, "ect" is a pretty severe typo for "sbin". :-) (It's a milder one for
"etc", but that's not where that script is located.)

--Rich

Jon Blakely

Re: did the FAQ# 6q12 now lost all Ibays
« Reply #12 on: August 11, 2002, 11:45:34 AM »
Oops, my typo

# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf

Jon

Dennis Pecynski

Re: did the FAQ# 6q12 now lost all Ibays
« Reply #13 on: August 11, 2002, 08:11:43 PM »
now......syntax error line 1507 of /ect/config/httpd.config: Invalid command /sbin/e-smith/expand-template.


Hey remember in my first post..I told you before anyone tryed to guide me..I did the sandbox disable?.....wonder if that may be causing any problems?...at that time..after disable...everything still worked...but because of the changes we have done here maybe ..there is a clash of some sort.

Jon Blakely

Re: did the FAQ# 6q12 now lost all Ibays
« Reply #14 on: August 12, 2002, 02:35:48 AM »
Ok its time to take a look at line 1507

/etc/httpd/conf/httpd.conf

and post that line and maybe a couple above and below.

jon