Web Hosting Talk







View Full Version : untar and unzip in SSH


Crazy BigGaz
12-24-2002, 02:57 PM
Hi,

I am needing to install Zend Optimizer and I have been told to do the following

But my question is how do I untar and unzip the Zend Optimizer tar ball in SSH ?

1. SSH into server
2. untar and unzip the Zend Optimizer tar ball
3. cd into the unarchived package
4. run the script install.sh

I have also read the Zend Optimizer User Guide and it say

2. If you are running under Apache, restart your Apache Web server. For recent
Apache 1.3 versions, use the commands:
apachectl stop; apachectl start

I am running Apache 1.3.27 so do I need to apachectl stop; apachectl start ? which is in step 2 ?

Regards,
Garry

Schumie
12-24-2002, 03:03 PM
To untar/unzip via command line use:
tar zxvf FILE.tar.gz

You will need to restart apache.

Crazy BigGaz
12-24-2002, 03:05 PM
Hi,

Will tar zxvf FILE.tar.gz put it in it own dir. ?

Regards,
Garry

mccuem
12-24-2002, 03:06 PM
I am running Apache 1.3.27 so do I need to apachectl stop; apachectl start ? which is in step 2 ?


My guess would be :

For recent
Apache 1.3 versions, use the commands:
apachectl stop; apachectl start

Yes?

And yes, usually it will put it in a subdirectory of where you currently are.

James[UH]
12-24-2002, 03:26 PM
You may need to say where the apachectl file is.

/usr/local/apache/bin/apachectl restart

Thats if it doesnt works with just apachectl action

Schumie
12-24-2002, 07:54 PM
Originally posted by silvernetuk
Will tar zxvf FILE.tar.gz put it in it own dir. ?

Would recommend that you download/move the tar to /usr/src/packages/SOURCES and untar there.

It should (pretty sure it will... unless it's a shoddy tar, coming from Zend, i expect it not to be) extract to it's own folder.

Then CD into the dir and follow the config && make instructions.

Crazy BigGaz
12-25-2002, 01:57 PM
Originally posted by Schumie


Would recommend that you download/move the tar to /usr/src/packages/SOURCES and untar there.

It should (pretty sure it will... unless it's a shoddy tar, coming from Zend, i expect it not to be) extract to it's own folder.

Then CD into the dir and follow the config && make instructions.


Hi,

when you say move it to /usr/src/packages/SOURCES
is the packages the linux system ie redhat etc... ?

Also where I am told to stop and start Apache could I just use:
apachectl restart or as James said:
/usr/local/apache/bin/apachectl restart

Thats if it doesnt works with just apachectl action

Regards,
Garry

Bram
12-27-2002, 12:03 PM
If you have a redhat system, it's /usr/src/redhat/SOURCES, but you're not required to untar the file there, although it's a good way to keep on eye on your files ;)

So untar the file (tar -xzvf filename), cd to the dir, run the install scripts and follow the inscructions.

And finally restart apache with the command:
/usr/local/apache/bin/apachectl restart


Good luck!