How to patch the Magento in two steps
Example on 126.96.36.199 version
Before patching you need create a database dump and site files dump.
Go to Magento commerce site in downloads, select
Release Archiveand find
Magento Community Edition Patches - 1.xsection where find needed patch in my case is the SUPEE-8788 and chose your version like
SUPEE-8788 for CE 188.8.131.52 (0.72 MB)then click to
Downloadlog in if not and you get
PATCH_SUPEE-8788_CE_184.108.40.206_v2-2016-10-14-09-42-47.shfile that is all step one ended.
Copy retrieved files to site root folder like
../public_html/set privilegues to file
chmod +x <patch-file-name>.shor
chmod 776 <patch-file-name>.shthe run this file
./<patch-file-name>.shif all right you will see the message in console
Patch was applied/reverted successfully.. If you need revert the patch run
If you have an errors check permissions on site folders must be 755 and for files into 644 for you customer and group.