Using a terminal session: Difference between revisions

From Joomla! Documentation

Gare (talk | contribs)
No edit summary
Fjb (talk | contribs)
Using SSH: unpack in the correct directory
Line 1: Line 1:
==Using SSH==
==Using SSH==
SSH, which stands for "Secure SHell", is a means of obtaining a secure command-line interface on a remote server host.
SSH ("Secure SHell") is a means of establishing a secure command-line shell interface on a remote system.


On Linux you can open a terminal window then enter the command <tt>ssh -l <username> <host></tt> where <username> should be replaced with your actual username and <host> by the domain name or IP address of the host you want to connect to.
On Unix / Linux you can open a secure shell with the command <tt>ssh -l <username> <host></tt> where <username> should be replaced with your actual username and <host> by the domain name or IP address of the host to which you want to connect.


On Microsoft Windows you can use the [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY terminal emulator].
On Microsoft Windows you can use the [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY terminal emulator].
Line 10: Line 10:
<source lang="bash">ssh -l goliath www.mydomain.com</source>
<source lang="bash">ssh -l goliath www.mydomain.com</source>


Unzip the bz2 package:
Both upgrade and full release packages are meant to be unpacked in the top-level directory of your Joomla web site distribution. Before unpacking the package, change directory to the top level of your http site. For example, if your top level Joomla files are located in /var/www/htdocs, use the following Unix command to change to that directory first.
<source lang="bash">bunzip2 Joomla_1.5.1-Stable-Full_Package.tar.bz2</source>


to get the tarball.  To extract new version files over old joomla files:
<source lang="bash">cd /var/www/htdocs</source>
<source lang="bash">tar xvf Joomla_1.5.1-Stable-Full_Package.tar</source>
 
You can then extract new version files over your old joomla files:
<source lang="bash">tar xjvf Joomla_1.5.1-Stable-Full_Package.tar.bz2</source>


Some sample MYSQL commands from the command line:
Some sample MYSQL commands from the command line:

Revision as of 01:01, 19 January 2010

Using SSH

SSH ("Secure SHell") is a means of establishing a secure command-line shell interface on a remote system.

On Unix / Linux you can open a secure shell with the command ssh -l <username> <host> where <username> should be replaced with your actual username and <host> by the domain name or IP address of the host to which you want to connect.

On Microsoft Windows you can use the PuTTY terminal emulator.

You will be prompted for the password associated with the username. If this is the first time you have attempted to connect to this host using SSH you will be asked to confirm the fingerprint of the host you are attempting to connect to. To exit an SSH session, type Control-D or "exit". For example, to connect to host www.mydomain.com using username "goliath" you would enter:

ssh -l goliath www.mydomain.com

Both upgrade and full release packages are meant to be unpacked in the top-level directory of your Joomla web site distribution. Before unpacking the package, change directory to the top level of your http site. For example, if your top level Joomla files are located in /var/www/htdocs, use the following Unix command to change to that directory first.

cd /var/www/htdocs

You can then extract new version files over your old joomla files:

tar xjvf Joomla_1.5.1-Stable-Full_Package.tar.bz2

Some sample MYSQL commands from the command line:

  1. upgrade sql via MYSQL for RC1 to RC2

> mysql -utodd -Djoomladbname -p < diff_rc1_to_rc2.sql

  1. no changes 2 to rc3

>

  1. rc3 to rc4

> mysql -utodd -Djoomladbname -p < diff_rc3_to_rc4.sql

  1. no changes 4 to live

>

If you have downloaded one of the other zipped types from Joomla, check out

http://www.accessdataservices.com/blog/unix-101-unzipping-files/ for different ways to unzip different types of files.