Re: [Re: [newbie] How do I install php-3_0_9_tar.tar]

1999-09-20 Thread Richard Adams

On Mon, 20 Sep 1999, you wrote:
 Richard Adams wrote:
  
  The above is correct, however just tellig someone to untar the file
  without telling him or even warn him what he is doing is going a
  little to far.
  
  tar files can will and have done damage to my system when i was a
  green newbie many moons ago. I _still_ do the following before i
  untar any file other than a linux kernel source tree.
  
  zless file.tar,gz all i want to see is what is in the top left hand
  corner, which will tell me if the tar file creates its own directory
  or just deposites all its files in the presant working directory, and
  yes there still are still idiots who create archives like that, so be
  warned.
  
  The best advice here is;
  mkdir /tmp/newfile
  cp file.tar.gz /tmp/newfile
  tar xzf file.tar.gz
 
 
 Thanks Richard, I hadn't been bit by this one. Now maybe
 I can sidestep one of the pit traps. :-)

What i explaned was extream curcumstancies, normaly a tar file can be
placed say into your ftp directory, thats what i do when downloading
via ftp or via netscape.

I gave the example of /tmp/newfile to make it very clear what i
meant, now considering you read and took that advice here's a beter
way. and a more detailed explanation of howto use tar archives.

As i said my files go into /home/ftp/pub/incoming, now when the
download is complete i do, zless file.tar.gz as explained before, as
soon as i see that a new directory is created, an example would be;

zless cwkeyer-0.1.tgz 
cwkeyer-0.1/^@^@^@^@
 that shows me the archive will create its own dir, i
then do;
cd /usr/local/src
tar xzf /home/ftp/pub/incoming/cwkeyer-0.1.tgz which will create;
/usr/local/src/cwkeyer-0.1
cd cwkeyer-0.1
Read the README's and INSTALL files which are "normaly" included in a
decent archive, then follow what is written, normaly someting like
the  following would be applicable,
./configure 
make 
make install
That should then place the newly made binary(s) in thier proper
resting place.

If for instance you have an archive which will deposite binary's
striat into places like /bin /sbin etc, i firstly make sure i have
the old origanal tar archive or copy the old program binary as
prog.OLD, these sorts of archives would show in the top lefthand
corner with zless something like;
bin/@
so you would do;
cd /
tar xzf /home/ftp/pub/incoming/file.tar.gz
That will install the binarys strait to the correct place.

One thing to remember is that a system which uses RPM's can uninstall
an rpm if it proves to cause problems and will replace the old
binarys, using tar archives you need to take precausions yourself.

I use Redhat-6.0 but still get tar.gz archives from the net to install
on my system, i was a slackware user for many years (and indeed
still am on a couple of my machines) and just got used to doing it
that way.

Its always beter to be cautouis and happy, than jumping in like a
bull in a china shop and having to pay the price.

 Bob J.
--
Regards Richard
[EMAIL PROTECTED]



Re: [Re: [newbie] How do I install php-3_0_9_tar.tar]

1999-09-19 Thread Michael Scottaline

"Eric L. Damron" [EMAIL PROTECTED] wrote:
 Thanks for the info Brett.
 
 And BTW I am a newbie to Linux and I have been RTFM almost constantly and
 I'm getting F*king tired of RTFM so if I can get a little information
 without RTFM, I certainly will.
 
 So, If anyone out there can tell me how to install a "tar.gz" file so that
I
 don't have to RTFM I would appreciate it!
 
 Thanks.
=
tar -xzvf file.tar.gz
It's in the FM ;o)
Mike

++
Michael Scottaline

COL 2.2   Linux 2.2.5
* * * * * * * * * * * 
It's a fresh wind that Blows Against the Empire



Get your own FREE, personal Netscape WebMail account today at 
http://webmail.netscape.com.



Re: [Re: [newbie] How do I install php-3_0_9_tar.tar]

1999-09-19 Thread Richard Adams

On Sun, 19 Sep 1999, you wrote:
 "Eric L. Damron" [EMAIL PROTECTED] wrote:
  Thanks for the info Brett.
  
  And BTW I am a newbie to Linux and I have been RTFM almost constantly and
  I'm getting F*king tired of RTFM so if I can get a little information
  without RTFM, I certainly will.
  
  So, If anyone out there can tell me how to install a "tar.gz" file so that
 I
  don't have to RTFM I would appreciate it!
  
  Thanks.
 =
 tar -xzvf file.tar.gz
 It's in the FM ;o)
 Mike


The above is correct, however just tellig someone to untar the file
without telling him or even warn him what he is doing is going a
little to far.

tar files can will and have done damage to my system when i was a
green newbie many moons ago. I _still_ do the following before i
untar any file other than a linux kernel source tree.

zless file.tar,gz all i want to see is what is in the top left hand
corner, which will tell me if the tar file creates its own directory
or just deposites all its files in the presant working directory, and
yes there still are still idiots who create archives like that, so be
warned.

The best advice here is;
mkdir /tmp/newfile
cp file.tar.gz /tmp/newfile
tar xzf file.tar.gz

Yes its possably work for nothing, no its NOT a bad idea, untill one
get the hang of things.

  ++
 Michael Scottaline
 
 COL 2.2   Linux 2.2.5
 * * * * * * * * * * * 
 It's a fresh wind that Blows Against the Empire
 
 
 
 Get your own FREE, personal Netscape WebMail account today at 
http://webmail.netscape.com.
--
Regards Richard
[EMAIL PROTECTED]



RE: [newbie] How do I install php-3_0_9_tar.tar

1999-09-19 Thread Ken Wilson

No need for the expletives.  BTW, if you're not into a little RTFM now
and then you are both 1) using the wrong OS if you think you can do
Linux without it, and 2) not going to get much sympathy or help for your
problems from those of us who do our RTFM when it's required.  :-)

Ken Wilson
First Law of Optimization: The speed of a nonworking program is
irrelevant
(Steve Heller, 'Efficient C/C++ Programming')

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Eric L. Damron
 Sent: Saturday, September 18, 1999 8:18 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [newbie] How do I install php-3_0_9_tar.tar


 Thanks for the info Brett.

 And BTW I am a newbie to Linux and I have been RTFM almost
 constantly and
 I'm getting F*king tired of RTFM so if I can get a little information
 without RTFM, I certainly will.

 So, If anyone out there can tell me how to install a "tar.gz"
 file so that I
 don't have to RTFM I would appreciate it!

 Thanks.

 -Original Message-
 From: Brett Jones [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date: Saturday, September 18, 1999 7:21 PM
 Subject: Re: [newbie] How do I install php-3_0_9_tar.tar


 Downloaded it with winblows? It should be php-3.0.9.tar.gz.
 You should go
 download  the newest tar file "3.0.12" from php.net, and
 while your there
 RTFM.
 
 Note: It may be installed on your sys already. Run "rpm -q php"
 
 In the future go to a real software database site
 (freshmeat.net), that has
 the
 current tar files for any given software package.
 
 On Sat, 18 Sep 1999, you wrote:
  I need to install PHP.  I picked up PHP-3_0_9_tar.tar from
  http://www.downloadsafari.com
 
  How do I know that this file will work with Mandrake 6.0
 (RedHat 6.0)
 
  How do I install it?
 
  Thanks
 --
 Brett Jones
 [EMAIL PROTECTED]




Re: [newbie] How do I install php-3_0_9_tar.tar

1999-09-19 Thread Brett Jones

tar.gz is a tared gzipped file as is tgz. the command to uncompress and extract
the files is:

tar xzvf some-tar-gzipfile.tar.gz

tar: it is the basic command

x: tells it to extract the files
z: tells it the file is gzipped and it needs to gunzip it
v: tells it to be verbose
f: tells it to use the file you give it 

To tar and gzip a file using the tar command do this:

tar czvf some-tar-gzipfile.tar.gz source

c: tells it to create

On Sun, 19 Sep 1999, you wrote:
 "Eric L. Damron" wrote:
  
  Thanks for the info Brett.
  
  And BTW I am a newbie to Linux and I have been RTFM almost constantly and
  I'm getting F*king tired of RTFM so if I can get a little information
  without RTFM, I certainly will.
  
  So, If anyone out there can tell me how to install a "tar.gz" file so that I
  don't have to RTFM I would appreciate it!
  
 
 I'm a newbie also, and like you, I get real tired of RTFM.
 Unfotunately
 it's the best source of information. I installed a .tgz file with
 tar [options] myfile.tgz I don't remember the [options] part so, sad
 as
 it is, man tar is how you find out which ones you'll need.
 
 Bob J.
--
Brett Jones
[EMAIL PROTECTED]



Re: [newbie] How do I install php-3_0_9_tar.tar

1999-09-19 Thread Dan Brown

Brett Jones wrote:

 apache+mod_ssl+php.  I remember a failure when building one of the packages
 using this guide, but it was an easy fix. I you run into it drop me a line.

I'm having trouble with this one--I finally got mod_ssl working, but
PHP still isn't.  I'd appreciate any info you have on this.

--
Dan Brown, KE6MKS, [EMAIL PROTECTED]
Meddle not in the affairs of dragons, for you are crunchy and taste good
with ketchup.



Re: [newbie] How do I install php-3_0_9_tar.tar

1999-09-19 Thread Eric L. Damron

Thanks Brett!  Sorry if I seemed a little cranky in my last message.  I've
covered so much ground in such a short time that I'm going brain dead.

I want to create a web site that interfaces with the PostgresSQL backend.  I
also need to protect various parts of my web site via logins.

I have a ton of projects and am feeling very overwhelmed right now.

Thanks for all of your help.  It is appreciated!

-Original Message-
From: Brett Jones [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Sunday, September 19, 1999 11:14 AM
Subject: Re: [newbie] How do I install php-3_0_9_tar.tar


setting it up is not to difficult if your comfortable with Linux, but if
your
completely green it will be tough. Go to this site and download the .pdf
file
that covers web database set up (www.sfu.ca/~yzhang/linux). You will have
to
RTFM, but it's a good how-to that covers it well without to much overhead.
He also has a good how-to on samba, setting up a webmail service, ip masq,
and
apache+mod_ssl+php.  I remember a failure when building one of the packages
using this guide, but it was an easy fix. I you run into it drop me a line.

Go ahead and download and build apache as per the guide, don't use the
pre-built
one from mandrake.

Good luck, let me know if I can help. By the way what are your plans with
php3?





Re: [newbie] How do I install php-3_0_9_tar.tar

1999-09-19 Thread Brett Jones

Look in the httpd.conf file and see if the php3 modules have been added to the
loadmodule list. Make sure all the needed changes (as per the how-to) have been
made to this file. Some examples:

AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps

The above lines should be added (or uncommented if there). And these should
also be appended to the DirectoryIndex section:

index.phtml index.php3


On Sun, 19 Sep 1999, you wrote:
 From: Brett Jones [EMAIL PROTECTED]
 
  What's the error message from php?
 
 It isn't giving one--it just isn't running PHP.  It appears to
 configure, compile, and install without errors, but when I try to view a
 simple test page (? echo "Hello World"; ?), netscape and lynx both try to
 save the file, rather than viewing "Hello World" as
intended.  If I just go  through his web-database guide (not installing
openssl/mod_ssl), PHP works  fine.
--
Brett Jones
[EMAIL PROTECTED]



Re: [Re: [newbie] How do I install php-3_0_9_tar.tar]

1999-09-19 Thread Bob Jackson

Richard Adams wrote:
 
 The above is correct, however just tellig someone to untar the file
 without telling him or even warn him what he is doing is going a
 little to far.
 
 tar files can will and have done damage to my system when i was a
 green newbie many moons ago. I _still_ do the following before i
 untar any file other than a linux kernel source tree.
 
 zless file.tar,gz all i want to see is what is in the top left hand
 corner, which will tell me if the tar file creates its own directory
 or just deposites all its files in the presant working directory, and
 yes there still are still idiots who create archives like that, so be
 warned.
 
 The best advice here is;
 mkdir /tmp/newfile
 cp file.tar.gz /tmp/newfile
 tar xzf file.tar.gz


Thanks Richard, I hadn't been bit by this one. Now maybe
I can sidestep one of the pit traps. :-)

Bob J.



[newbie] How do I install php-3_0_9_tar.tar

1999-09-18 Thread Eric L. Damron

I need to install PHP.  I picked up PHP-3_0_9_tar.tar from
http://www.downloadsafari.com

How do I know that this file will work with Mandrake 6.0 (RedHat 6.0)

How do I install it?

Thanks



Re: [newbie] How do I install php-3_0_9_tar.tar

1999-09-18 Thread Brett Jones

Downloaded it with winblows? It should be php-3.0.9.tar.gz. You should go
download  the newest tar file "3.0.12" from php.net, and while your there RTFM.

Note: It may be installed on your sys already. Run "rpm -q php"

In the future go to a real software database site (freshmeat.net), that has the
current tar files for any given software package.

On Sat, 18 Sep 1999, you wrote:
 I need to install PHP.  I picked up PHP-3_0_9_tar.tar from
 http://www.downloadsafari.com
 
 How do I know that this file will work with Mandrake 6.0 (RedHat 6.0)
 
 How do I install it?
 
 Thanks
--
Brett Jones
[EMAIL PROTECTED]



Re: [newbie] How do I install php-3_0_9_tar.tar

1999-09-18 Thread Eric L. Damron

Thanks for the info Brett.

And BTW I am a newbie to Linux and I have been RTFM almost constantly and
I'm getting F*king tired of RTFM so if I can get a little information
without RTFM, I certainly will.

So, If anyone out there can tell me how to install a "tar.gz" file so that I
don't have to RTFM I would appreciate it!

Thanks.

-Original Message-
From: Brett Jones [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Saturday, September 18, 1999 7:21 PM
Subject: Re: [newbie] How do I install php-3_0_9_tar.tar


Downloaded it with winblows? It should be php-3.0.9.tar.gz. You should go
download  the newest tar file "3.0.12" from php.net, and while your there
RTFM.

Note: It may be installed on your sys already. Run "rpm -q php"

In the future go to a real software database site (freshmeat.net), that has
the
current tar files for any given software package.

On Sat, 18 Sep 1999, you wrote:
 I need to install PHP.  I picked up PHP-3_0_9_tar.tar from
 http://www.downloadsafari.com

 How do I know that this file will work with Mandrake 6.0 (RedHat 6.0)

 How do I install it?

 Thanks
--
Brett Jones
[EMAIL PROTECTED]



Re: [newbie] How do I install php-3_0_9_tar.tar

1999-09-18 Thread Dan Brown

"Eric L. Damron" wrote:

 So, If anyone out there can tell me how to install a "tar.gz" file so that I
 don't have to RTFM I would appreciate it!

The problem is that there is no answer to "how to install a .tar.gz
file", because such a file could contain just about anything.  In the
case of php 3.0.12, which I've just been working with, here's what I've
done:

mv php-3.0.12.tar.gz /usr/local/src
cd /usr/local/src
tar zxf php-3.0.12.tar.gz
/* this extracts the file's contents */
cd php-3.0.12
./configure
/* here, you need to give it various options, depending on what you
want to do with it.  You'll probably need to add --with-mysql,
as I think I remember your saying you wanted to use mysql.  Here,
you really do need to RTFM, or be willing to try several times until
it works. */
make
make install

That's the gist of it.  The same basic idea will work with most major
source packages any more--extract the package, usually in
/usr/local/src, run ./configure in the package's directory, and then run
make (to compile everything) and make install (to install it).  However,
if there's a README file with the package, it'd be a good idea to read
it.

--
Dan Brown, KE6MKS, [EMAIL PROTECTED]
"Since all the world is but a story, it were well for thee to buy the
more enduring story rather than the story that is less enduring"
  -- The Judgment of St. Colum Cille