SlideShare a Scribd company logo
{
Godaddy
Setting up for ssh
Login to godaddy control panel and enable SSH.
It may take a few moments to become active.
First make sure php version is 5.3!
Find your ssh login * Go to FTP Users
Use primary username for ssh
ssh user1@webdesignbycielo.com
If you don’t remember your password it can be changed under the
setup>actions tab. It is important to know your password!
Add your public ssh key on GoDaddy
$ mkdir .ssh
Create .ssh directory in the root of your GoDaddy account
Log in with ssh ftpname@yoursite.com and enter ftp pw
Create authorized_keys file
-bash-3.2$ touch .ssh/authorized_keys
-bash-3.2$ cd .ssh
-bash-3.2$ vi authorized_keys
GoDaddy uses vi or vim to edit files. We will use vi to add our
public key to the empty authorized_keys file.
Paste in your id_rsa.pub (public key)
• type i (to insert)
• paste in your id_rsa.pub (public key)
• esc
• : wq (colon, write & quit)
Your public rsa key was successfully added if you were
not prompted for a password
Log out and use your ssh login to test!
ssh ftpname@yoursite.com
{
Godaddy
Installing Git
Q: Why not use yum to install git?
A: Most tutorials for installing git on CentOS use
yum. Godaddy prevents yum from being used or
installed on their shared servers unless you
switch to dedicated server (more expensive plan)
* If you figure out a way to use yum on godaddy shared server – please let me know
At the time of this tutorial, GoDaddy shared
OS is CentOS release 5.5 (Final). To verify:
-bash-3.2$ cat /etc/redhat-release
Download the rpm into the git directory from EPEL
( http://fedoraproject.org/wiki/EPEL ) Important because GoDaddy
shared servers are CentOS.
-bash-3.2$ mkdir git
-bash-3.2$ cd git/
Create git directory
-bash-3.2$ wget
http://dl.fedoraproject.org/pub/epel/5/i386/
git-1.8.2.1-1.el5.i386.rpm
Unpack git with rpm2cpio and cpio
-bash-3.2$ rpm2cpio git-1.8.2.1-
1.el5.i386.rpm | cpio -imdv
-bash-3.2$ git --version
git version 1.8.2.1
Verify your version of git
-bash-3.2$ rm git-1.8.2.1-1.el5.i386.rpm
Clean up and remove the un-needed file
-bash-3.2$ echo "
export GIT_BIN=${HOME}/git
export PATH=${GIT_BIN}/usr/bin:${PATH}
export GIT_EXEC_PATH=${GIT_BIN}/usr/bin
export GIT_TEMPLATE_DIR=${GIT_BIN}/usr/share/git-
core/templates
export GIT_SSL_NO_VERIFY=true" >> ~/.bash_profile
In the root, configure your $path variable. Copy/paste
all at once.
Important! Close the terminal and ssh back in
-bash-3.2$ cd ~
Go back to the root of your godaddy site
-bash-3.2$ git init
Go to the root of your DRUPAL site. Do not make
your git init in the root dir of your GoDaddy acct.
Configure your repo. In this example, I am using
bitbucket which is free for individuals.
It is important to note that we can only ssh INTO our
GoDaddy account. You must use https to connect to
bitbucket & enter bitbucket password.
-bash-3.2$ git remote add origin
https://cielo@bitbucket.org/cielo/testsite.git
Success!
Please note that you must enter the bitbucket password
each time you push/pull from your repo
{
Godaddy
Installing Drush
ssh into the root directory of your
GoDaddy acct.
-bash-3.2$ wget
http://ftp.drupal.org/files/projects/drush-
7.x-5.8.tar.gz
Note –The most current version can be cloned via git from
https://github.com/drush-ops/drush.
ssh ftpname@yoursite.com
At this time, drush 5.8 works best on
Godaddy.
-bash-3.2$ tar -pzxf drush-7.x-5.8.tar.gz
Extract the file
Clean up and remove un-needed file
-bash-3.2$ rm drush-7.x-5.8.tar.gz
-bash-3.2$ ls -a
View hidden files to see if .bash_profile
has already been created. This file will be
there if you have already installed git.
-bash-3.2$ vi .bash_profile
GoDaddy uses vi or vim to edit files. We
will use vi to edit .bash_profile.
Type in i (to insert) and paste in the following. If you
previously installed git, skip a line and paste under.
• Type in i (for insert)
• Paste in the following:
export COLUMNS
alias drush='/usr/local/php5/bin/php ~/drush/drush.php'
alias php='/usr/local/php5/bin/php‘
• esc
• : wq (colon, write & quit)
Update your session
-bash-3.2$ source .bash_profile
Close the terminal and ssh back in.
Verify that drush is installed
-bash-3.2$ drush status
Success!
As of September 2013, you must use an older version
of drush on godaddy. Godaddy support states they will
eventually update command line to PHP version to 5.3.3+
Until then…your client must purchase a vps (private server)
or dedicated server

More Related Content

What's hot

What's hot (20)

Linux Commands
Linux CommandsLinux Commands
Linux Commands
 
Rpm Introduction
Rpm IntroductionRpm Introduction
Rpm Introduction
 
[ETHCon Korea 2019] Shin mansun 신만선
[ETHCon Korea 2019] Shin mansun 신만선[ETHCon Korea 2019] Shin mansun 신만선
[ETHCon Korea 2019] Shin mansun 신만선
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformatics
 
HP-UX 11iv3 How to Change Root Volume Group Name vg00 by Dusan Baljevic
HP-UX 11iv3 How to Change Root Volume Group Name vg00 by Dusan BaljevicHP-UX 11iv3 How to Change Root Volume Group Name vg00 by Dusan Baljevic
HP-UX 11iv3 How to Change Root Volume Group Name vg00 by Dusan Baljevic
 
Pry at the Ruby Drink-up of Sophia, February 2012
Pry at the Ruby Drink-up of Sophia, February 2012Pry at the Ruby Drink-up of Sophia, February 2012
Pry at the Ruby Drink-up of Sophia, February 2012
 
{'python': 'dict'}
{'python': 'dict'}{'python': 'dict'}
{'python': 'dict'}
 
A Journey to Boot Linux on Raspberry Pi
A Journey to Boot Linux on Raspberry PiA Journey to Boot Linux on Raspberry Pi
A Journey to Boot Linux on Raspberry Pi
 
Contribuir a Drupal - Entorno
Contribuir a Drupal - EntornoContribuir a Drupal - Entorno
Contribuir a Drupal - Entorno
 
Git&GitHub 를 이용한 버전관리와 협업 - 4.협업과 지속적 통합
Git&GitHub 를 이용한 버전관리와 협업 - 4.협업과 지속적 통합Git&GitHub 를 이용한 버전관리와 협업 - 4.협업과 지속적 통합
Git&GitHub 를 이용한 버전관리와 협업 - 4.협업과 지속적 통합
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for Beginners
 
Install odoo v8 the easiest way on ubuntu debian
Install odoo v8 the easiest way on ubuntu debianInstall odoo v8 the easiest way on ubuntu debian
Install odoo v8 the easiest way on ubuntu debian
 
The Unix Command Line | Jim Reevior
The Unix Command Line | Jim ReeviorThe Unix Command Line | Jim Reevior
The Unix Command Line | Jim Reevior
 
Rhel 6.2 complete ebook
Rhel 6.2 complete ebookRhel 6.2 complete ebook
Rhel 6.2 complete ebook
 
Rhel 6.2 complete ebook
Rhel 6.2  complete ebookRhel 6.2  complete ebook
Rhel 6.2 complete ebook
 
Dockerizing WordPress
Dockerizing WordPressDockerizing WordPress
Dockerizing WordPress
 
Installing and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command lineInstalling and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command line
 
Free BSD次の一歩
Free BSD次の一歩Free BSD次の一歩
Free BSD次の一歩
 
Basic Linux day 6
Basic Linux day 6Basic Linux day 6
Basic Linux day 6
 
BASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUXBASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUX
 

Similar to Install git and drush on Godaddy shared hosting

Similar to Install git and drush on Godaddy shared hosting (20)

GTFO: Git Theory For OpenSource
GTFO: Git Theory For OpenSourceGTFO: Git Theory For OpenSource
GTFO: Git Theory For OpenSource
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
Git intro hands on windows with msysgit
Git intro hands on windows with msysgitGit intro hands on windows with msysgit
Git intro hands on windows with msysgit
 
Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)
Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)
Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)
 
Using Puppet to Create a Dynamic Network - PuppetConf 2013
Using Puppet to Create a Dynamic Network - PuppetConf 2013Using Puppet to Create a Dynamic Network - PuppetConf 2013
Using Puppet to Create a Dynamic Network - PuppetConf 2013
 
Hadoop installation on windows
Hadoop installation on windows Hadoop installation on windows
Hadoop installation on windows
 
How To Install GitLab As Your Private GitHub Clone
How To Install GitLab As Your Private GitHub CloneHow To Install GitLab As Your Private GitHub Clone
How To Install GitLab As Your Private GitHub Clone
 
Getting started with git
Getting started with gitGetting started with git
Getting started with git
 
GitSetupLinux
GitSetupLinuxGitSetupLinux
GitSetupLinux
 
Git setuplinux
Git setuplinuxGit setuplinux
Git setuplinux
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 
Git Memento of basic commands
Git Memento of basic commandsGit Memento of basic commands
Git Memento of basic commands
 
Qt native built for raspberry zero
Qt native built for  raspberry zeroQt native built for  raspberry zero
Qt native built for raspberry zero
 
Tutorial: Install Nagios in Fedora
Tutorial: Install Nagios in FedoraTutorial: Install Nagios in Fedora
Tutorial: Install Nagios in Fedora
 
How to make debian package from scratch (linux)
How to make debian package from scratch (linux)How to make debian package from scratch (linux)
How to make debian package from scratch (linux)
 
Making environment for_infrastructure_as_code
Making environment for_infrastructure_as_codeMaking environment for_infrastructure_as_code
Making environment for_infrastructure_as_code
 
Git installation
Git installationGit installation
Git installation
 
Devops for beginners
Devops for beginnersDevops for beginners
Devops for beginners
 
Git Concepts, Commands and Connectivity
Git Concepts, Commands and ConnectivityGit Concepts, Commands and Connectivity
Git Concepts, Commands and Connectivity
 
Hadoop completereference
Hadoop completereferenceHadoop completereference
Hadoop completereference
 

Recently uploaded

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 

Recently uploaded (20)

IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT Professionals
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 

Install git and drush on Godaddy shared hosting

  • 2. Login to godaddy control panel and enable SSH. It may take a few moments to become active.
  • 3. First make sure php version is 5.3! Find your ssh login * Go to FTP Users
  • 4. Use primary username for ssh ssh user1@webdesignbycielo.com If you don’t remember your password it can be changed under the setup>actions tab. It is important to know your password!
  • 5. Add your public ssh key on GoDaddy $ mkdir .ssh Create .ssh directory in the root of your GoDaddy account Log in with ssh ftpname@yoursite.com and enter ftp pw
  • 6. Create authorized_keys file -bash-3.2$ touch .ssh/authorized_keys -bash-3.2$ cd .ssh -bash-3.2$ vi authorized_keys GoDaddy uses vi or vim to edit files. We will use vi to add our public key to the empty authorized_keys file.
  • 7. Paste in your id_rsa.pub (public key) • type i (to insert) • paste in your id_rsa.pub (public key) • esc • : wq (colon, write & quit)
  • 8. Your public rsa key was successfully added if you were not prompted for a password Log out and use your ssh login to test! ssh ftpname@yoursite.com
  • 10. Q: Why not use yum to install git? A: Most tutorials for installing git on CentOS use yum. Godaddy prevents yum from being used or installed on their shared servers unless you switch to dedicated server (more expensive plan) * If you figure out a way to use yum on godaddy shared server – please let me know At the time of this tutorial, GoDaddy shared OS is CentOS release 5.5 (Final). To verify: -bash-3.2$ cat /etc/redhat-release
  • 11. Download the rpm into the git directory from EPEL ( http://fedoraproject.org/wiki/EPEL ) Important because GoDaddy shared servers are CentOS. -bash-3.2$ mkdir git -bash-3.2$ cd git/ Create git directory -bash-3.2$ wget http://dl.fedoraproject.org/pub/epel/5/i386/ git-1.8.2.1-1.el5.i386.rpm
  • 12. Unpack git with rpm2cpio and cpio -bash-3.2$ rpm2cpio git-1.8.2.1- 1.el5.i386.rpm | cpio -imdv -bash-3.2$ git --version git version 1.8.2.1 Verify your version of git -bash-3.2$ rm git-1.8.2.1-1.el5.i386.rpm Clean up and remove the un-needed file
  • 13. -bash-3.2$ echo " export GIT_BIN=${HOME}/git export PATH=${GIT_BIN}/usr/bin:${PATH} export GIT_EXEC_PATH=${GIT_BIN}/usr/bin export GIT_TEMPLATE_DIR=${GIT_BIN}/usr/share/git- core/templates export GIT_SSL_NO_VERIFY=true" >> ~/.bash_profile In the root, configure your $path variable. Copy/paste all at once. Important! Close the terminal and ssh back in -bash-3.2$ cd ~ Go back to the root of your godaddy site
  • 14. -bash-3.2$ git init Go to the root of your DRUPAL site. Do not make your git init in the root dir of your GoDaddy acct. Configure your repo. In this example, I am using bitbucket which is free for individuals. It is important to note that we can only ssh INTO our GoDaddy account. You must use https to connect to bitbucket & enter bitbucket password. -bash-3.2$ git remote add origin https://cielo@bitbucket.org/cielo/testsite.git
  • 15. Success! Please note that you must enter the bitbucket password each time you push/pull from your repo
  • 17. ssh into the root directory of your GoDaddy acct. -bash-3.2$ wget http://ftp.drupal.org/files/projects/drush- 7.x-5.8.tar.gz Note –The most current version can be cloned via git from https://github.com/drush-ops/drush. ssh ftpname@yoursite.com At this time, drush 5.8 works best on Godaddy.
  • 18. -bash-3.2$ tar -pzxf drush-7.x-5.8.tar.gz Extract the file Clean up and remove un-needed file -bash-3.2$ rm drush-7.x-5.8.tar.gz
  • 19. -bash-3.2$ ls -a View hidden files to see if .bash_profile has already been created. This file will be there if you have already installed git. -bash-3.2$ vi .bash_profile GoDaddy uses vi or vim to edit files. We will use vi to edit .bash_profile.
  • 20. Type in i (to insert) and paste in the following. If you previously installed git, skip a line and paste under. • Type in i (for insert) • Paste in the following: export COLUMNS alias drush='/usr/local/php5/bin/php ~/drush/drush.php' alias php='/usr/local/php5/bin/php‘ • esc • : wq (colon, write & quit)
  • 21. Update your session -bash-3.2$ source .bash_profile Close the terminal and ssh back in.
  • 22. Verify that drush is installed -bash-3.2$ drush status Success!
  • 23. As of September 2013, you must use an older version of drush on godaddy. Godaddy support states they will eventually update command line to PHP version to 5.3.3+ Until then…your client must purchase a vps (private server) or dedicated server