Webmaster Key - Discussion Forums


Welcome, Guest. Please login or register.
Did you miss your activation email?
February 09, 2012, 11:18:31 AM

Login with username, password and session length
Welceome to Forums!

Important information for guests and new members:

In order to understand the full benefits of becoming an active member of this forum, please review the following information on guest and new member restrictions. These forum changes have been prompted by an overwhelming and unreasonable amount of bot postings and incoherent guest spam messages. We wish to prevent these events from happening in the future and make our community a more comfortable place for all of our members.

For guests:

Guests are not allowed to open new topics, polls, or posts attachments.
If you wish to open up new discussions on this forum, we encourage you to register.

For new members:

New members with less than five posts are not allowed to modify additional profile information such as avatars, contact information, biographies, and signatures. However, new members are encouraged to post their own topics or reply to topics initiated by other members. Become active on the forums and 5 posts should be an easy task!

We are a diverse community with members from all over the world. We encourage new ideas and interesting conversation. Do not be afraid to post webmaster/computer-related questions or problems, as our active members are always willing to help when they are able. Interested? Join us.

+ Webmaster Key Forums
|-+ General Discussion
| |-+ Tech Corner
| | |-+ HOWTOs Library
| | | |-+ HOWTO install script using SSH on Linux hosting
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print
Author Topic: HOWTO install script using SSH on Linux hosting  (Read 3927 times)
SensoVision
Administrator
Veteran
*****
Posts: 5 857


I'm proud user of Debian GNU/Linux OS


WWW
« on: March 29, 2008, 10:17:29 AM »

Have you ever was bored by installing some script via FTP, where you need to download archive to your PC, than unpack and upload every file to your hosting?(which could take a while even on speed connection if program contain many small files).
If you have a Linux based hosting and SSH option in your account, you don't have to do this anymore, such script installation steps would take only few seconds. Also using SSH you can delete, change permissions, backup databases, move files and directories in very fast manner, usually in much more productive way than with control panels provided by hosting.


Example of how to install Joomla on hosting with SSH support:


1. First, you need some SSH client, for Windows I would recommend PuTTY which is freely available for download. For Linux I'm using OpenSSH, but PuTTY could be used as well.

2. Next you need to connect to your account through SSH program, in PuTTY find menu Session and input host you wish to connect, usually it would have format like yousiteurl.net but in some cases it may look like this ssh.yoursiteurl.net(you can find this info it in control panel or check with your hosting support), change protocol to SSH and click "Open", you can also save session parameters for future use.

3. Once you click open you'll need to input login and password, in most cases it's same as main login and password for your account, but some hosts setup different login and password, so it's better to check it out first.

4. Once logged in, you should see prompt like this:
Quote
Last login: Fri Feb  8 20:33:30 2008 from 92.113.60.216
yourlogin@yoursiteurl.net[~]#
.
Now you need to proceed to directory you wish to install script. You can do this either using console commands or by launching MC(MidnightCommander) file manager which preinstalled on many machnies. If you choose second way simply type mc.
If first method type ls and you'll see structure of directories in your account which would look less or more like this:
Quote
./              .contactemail       .htpasswds/     .spamassassin/
../             .cpanel/           temp.tmp      .spamassassinenable
access-logs@    .cpanel-datastore/  .lastlogin      spamreport/
auto-whitelist  .cpanel-ducache     logs/           .sqmaildata/
.bash_history   .cpanel-logs        mail/           tmp/
.bash_logout    .dns                .mailboxlist    .trash/
.bash_profile   .emacs              .mc/            www@
.bashrc         etc/                .mysql_history  .zshrc
.canna          .filter             public_ftp/
.cedit/         .ftpquota           public_html/

There should be directory which called either "docs", "public_html", "www", or "www@". This directory is the place where your site is stored and therefore you need to upload your script there. Once it found simply type cd www.
You can also check in your FTP program where you usually upload your files e.g. if it's "/home/yourlogin/public_html" in SSH type: cd /home/yourlogin/public_html
If you're in doubt, feel free to ask here, just don't reveal any passwords or login info publicly, it's dangerous!

5. Now we ready to download our script, for example I've choose Joomla which seems to be popular lately, but this example would work with many other software including forums and blogs scripts. First choose file you need to download: http://joomlacode.org/gf/project/joomla/frs/
on download page copy link you wish to download in clipboard, I've choose to download: Joomla_1.0.15-Stable-Full_Package.tar.bz2

To download this file type this: wget http://joomlacode.org/gf/download/frsrelease/6828/22536/Joomla_1.0.15-Stable-Full_Package.tar.bz2
In few seconds file will be downloaded to current directory of your hosting account.

6. now you need to unpack it, if you're using command line type ls first, to see the name of the file and type: 
tar jxvf Joomla_1.0.15-Stable-Full_Package.tar.bz2
If you don't wish to type whole string, try this:
tar jxvf Jo[TAB]
(by [TAB] I mean hitting "Tab key") So if there are only one file in directory which have it's name started from "Jo" shell will complete name for you, if there are more files like this you'll see prompt to choose one from list.



In most cases files in these archives are packed with correct permissions so you don't need to change anything, which is also advantage of using SSH method. So once you've unpack file you're ready to continue with web installation steps.
Article doesn't look short, but it's only to describe the way how it's working, in reality it takes less than half minute to perform all all these steps once you get used to this way of working.

Let me know if it was useful, and if you got some troubles, feel free to ask and I'll try to help you.

If you wish to re-post this or other tutorial, please contact me.

PS here is other HOWTO I wrote about common Linux commands which may come in help.
Report to moderator   Logged

Denis
sholing
Jr. Member
*
Posts: 26


« Reply #1 on: September 08, 2010, 09:50:30 AM »

Thats is a great point,i am really lucky o see that,i will make use of it,thanks....
Report to moderator   Logged
Pages: [1] Go Up Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print 
+ Webmaster Key Forums
|-+ General Discussion
| |-+ Tech Corner
| | |-+ HOWTOs Library
| | | |-+ HOWTO install script using SSH on Linux hosting

Jump to:  
« previous next »


Our Partners
RelmaxTOP Ranking System Web Hosting RelmaxTOP Ranking System
Staff Sites
12Noon[12Noon Gallery] Andy[Urgentclick]
Tamuril[Tamuril's Digital Art Exhibit] Sensovision
Powered by MySQL Powered by PHP We are hosted by Relmax Inc. |Our Privacy Policy | Sitemap
Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
Forum design by Tamuril © 2005.
Valid XHTML 1.0! Valid CSS!