I use Drupal 7 and I read every article about applying patches, but I don't understand how to apply patches to Drupal files using SSH. I am administrator of a Linux server that hosts a Drupal site.

Can anybody help me?

  • 3
    There shouldn't be any difference to patching on a local machine to patching on your server, providing they use the same software. Either way there's nothing Drupal can help with specifically
    – Clive
    May 23, 2017 at 7:41

1 Answer 1


After logging in to your site with SSH, in order to apply patches, you should have or install a program on your server. patch is the most widespread one, but you can also use git for it.

You can find more documentation on applying patches in the Drupal site: https://www.drupal.org/patch/apply

  • So git or patch must be installed on my linux host ? where are the patch and git installation files?
    – omiti
    May 24, 2017 at 4:19
  • 1
    As mentioned by @Clive above, your question might be better placed at a Linux-specific Q&A site, maybe superuser.com? Installing standard software, such as patch or git, on a Linux server and using it is not Drupal-specific.
    – dinopmi
    May 24, 2017 at 8:13

Not the answer you're looking for? Browse other questions tagged or ask your own question.