Install drush on shared hosting

How to install drush on shared hosting :

1. Go to your server like

 ssh username@hostname.com

2. Go to your home folder by typing

 cd ~ 

3. Type this

 wget https://github.com/drush-ops/drush/archive/6.x.zip  

(I have not used drush 7 because it needs composer, so i was unable to install composer on shared hosting, if you help me in that i can buy a coffee for you)
4. Edit .bashrc file in your favorite editor may be nano, vi or vim.
5. Look for

How to remove ^M at the end of every line

Hi, today i just gone through a serious problem between windows and unix.

Problem description:

Whenever i move file from windows to UNIX with winscp. Every line got ^M at the end in every file.

Solution:

I opened that file in vi and done this

:%s/^M//g 
 Where ^ is (Control V) and M is (Control M).
It will remove all the trailing ^M at the end of every line.

Pages

Subscribe to Davinder Kumar RSS