LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fp_install.sh error (https://www.linuxquestions.org/questions/linux-newbie-8/fp_install-sh-error-322388/)

AndeAnderson 05-11-2005 10:21 AM

fp_install.sh error
 
I figured out that "tar" is a program for unzipping files, right?

I ran tar for the Front Page Server Extensions, filename fp50.linux.tar.gz, with no real problem.

But, when I run the fp_install.sh file I keep getting asked where the Front Page Sever Extensions "tar" file is.

I can not find any tar files on my system using mc. What would be the filename and location for this elusive FPSE tar file? Or, is it the original tar file?

Thanks

0pal_t0ad 05-11-2005 10:52 AM

Re: fp_install.sh error
 
Quote:

Originally posted by AndeAnderson
I figured out that "tar" is a program for unzipping files, right?
that's one use

Quote:

I ran tar for the Front Page Server Extensions, filename fp50.linux.tar.gz, with no real problem.

But, when I run the fp_install.sh file I keep getting asked where the Front Page Sever Extensions "tar" file is.

I can not find any tar files on my system using mc. What would be the filename and location for this elusive FPSE tar file? Or, is it the original tar file?

is that the full error message? what file does it ask for, FPSE.tar.*?
what does the install/readme file say?

AndeAnderson 05-11-2005 11:11 AM

Error message
 
The fp_install.sh creates the /usr/local/frontpage/ directory.

Then it comes back with the following statement:

"Cannot find the FrontPage Server Extensions tar file in /home/*/*/frontpage/version5.0/.
Which directory is the file located in (X to cancel)?"

I wish it would tell me a filename then I would be able to search for it.

The Install/Readme file only talks about the different mod installation requirements for the different versions of Apache.

Thanks

0pal_t0ad 05-12-2005 01:15 AM

open the fp_install in a text editor and look a line with /home/*/*/frontpage/version5.0/ to find out what it's looking for.

AndeAnderson 05-12-2005 07:04 AM

Not sure about the programming
 
Here is the closest I can find to that:

# get the name of the tarball file
# used by untarext
getextfilename()
{
vtfilelocation=$1
vtfile=$2
fullvtfile="${vtfilelocation}${vtfile}"
if [ ! -f "$fullvtfile" ]
then
if [ -f "${fullvtfile}.Z" ]
then
fullvtfile="${fullvtfile}.Z"
else
if [ -f "${fullvtfile}.gz" ]
then
fullvtfile="${fullvtfile}.gz"
else
if [ -f "${fullvtfile}.z" ]
then
echo "Renaming ${vtfile}.z to ${vtfile}.Z"
mv "${fullvtfile}.z" "${fullvtfile}.Z"
fullvtfile="${fullvtfile}.Z"
else
echo "Cannot find the FrontPage Server Extensions tar file in ${vtfilelocation}."
$echo "Which directory is the file located in (X to cancel)? ${nnl}"
read vtfilelocation
if [ "$vtfilelocation" = "X" ] || [ "$vtfilelocation" = "x" ]
then
return 1
else
vtfilelocation=`echo $vtfilelocation |sed -e 's/\/$//'`

if [ ! -d "$vtfilelocation" ]
then
vtfilelocation=`dirname $vtfilelocation`
fi
getextfilename $vtfilelocation/ $vtfile
fi
fi
fi
fi
fi
}

AndeAnderson 05-12-2005 09:50 AM

Default tar location
 
I found it, the fp_install.sh is just looking for the location of the fp50.linux.tar.gz file.

0pal_t0ad 05-12-2005 02:39 PM

Code:

echo "Cannot find the FrontPage Server Extensions tar file in ${vtfilelocation}."
$echo "Which directory is the file located in (X to cancel)? ${nnl}"
read vtfilelocation

i see it asks for the location of the file after the error msg, but it would help if they printed the filename they were after in the msg :)
but i don't get why they need the tar ball if everything was extracted. hmmm?

so have you got it working?

AndeAnderson 05-13-2005 06:21 AM

FPSE not installed yet
 
Not yet.

The next snag is that the fp_install.sh looks for /usr/local/apache/bin/apxs even though I am using Apache 2.

I looked in the script and found that the Apache 1.3 and Apache 2.0 lines ask for the exact same file, apxs. Even though Apache 2 uses a different directory and a different file named apxs2.

I tried changing the script, but no luck so far. I'll take another stab at it this morning. How did the person who wrote this installation script miss such an obvious thing? Oh well. Here's the Apache 2 portion of the fp_install.sh.

installfpdso2()
{
httpdir=`dirname $HttpdFile`
while ( [ ! -d "$httpdir" ] )
do
httpdir="/usr/local/apache/bin"
$echo "Where is the current Apache 2.0 bin directory: [$httpdir] ${nnl}"
read location
if [ "$location" != "" ]
then
httpdir=$location
fi
done
if [ ! -x "$httpdir/apxs" ]
then
echo "Cannot find Apache apxs at $httpdir/apxs"
return 1
fi
echo "Using the Apache apxs utility to build mod_frontpage.so"
CURPATH=$PATH
PATH=$OLDPATH
case "$machine" in
freebsd) opts=-Wc,-DFREEBSD ;;
bsdi) opts=-Wc,-Dbsdi ;;
linux) opts=-Wc,-Dlinux ;;
*) opts= ;;
esac
$httpdir/apxs -c $opts $FPDIR/apache2/mod_frontpage.c $FPDIR/apache2/mod_fpcgid.c
res=$?
PATH=$CURPATH
if [ $res -ne 0 ]
then
return $res
fi
echo "Using the Apache apxs utility to install mod_frontpage.so"
PATH=$OLDPATH
$httpdir/apxs -i -a -n frontpage $FPDIR/apache2/mod_frontpage.la
res=$?
PATH=$CURPATH
echo "Finished running the Apache apxs utility."
return $res

}

0pal_t0ad 05-13-2005 02:21 PM

you're probably using a newer version of apache to what the script was expecting or vice versa.
what can try is create the /usr/local/apache/bin/ dir then run:
Code:

ln -s /path/to/apxs2 /usr/local/apache/bin/apxs
and hope that apxs doesn't differ too much from apxs2 :)
'cos all that's doing is creating a symlik(shortcut). you'll more than likely need to do the same for other file too.

hope that works.

AndeAnderson 05-14-2005 10:09 AM

Alternative to FPSE
 
Thanks for the help.

I found out there was an alternative to FrontPage Server Extensions called mod_dav.

I installed the mod_dav and the wesite is working great.

Again, Thanks for the help. :D


All times are GMT -5. The time now is 01:02 PM.