{"id":61,"date":"2018-03-13T00:50:01","date_gmt":"2018-03-13T00:50:01","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2018\/03\/13\/install-magento-supee-6788-with-or-without-ssh\/"},"modified":"2025-10-03T13:15:01","modified_gmt":"2025-10-03T07:45:01","slug":"install-magento-supee-6788-with-or-without-ssh","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/install-magento-supee-6788-with-or-without-ssh\/","title":{"rendered":"How to Install Magento SUPEE 6788 with or without SSH"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Securing the stores against any potential attacks or threats is a must factor for any E-commerce store. To serve this purpose, Magento releases Security Patches frequently. With the Security Patches correctly installed in Magento stores, the store owners increase the security and hence provide safe transaction experience to their customers!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Magento released Security Patch&nbsp;<a href=\"https:\/\/experienceleague.adobe.com\/en\/docs\/commerce-operations\/release\/notes\/overview\" target=\"_blank\" rel=\"noreferrer noopener\"><em><strong>SUPEE 6788<\/strong><\/em><\/a>&nbsp;on Oct 27, 2015, to ensure protection against threats such as remote code execution, information leaks, and cross-site scripting.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With nearing of&nbsp;Magento 1 end of life, it is strongly recommended to migrate to the latest&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/magento-2-4-8\/\">Magento 2.4.8<\/a>&nbsp;&nbsp;rather than installing&nbsp;<em><strong>Magento SUPEE-6788<\/strong><\/em>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing Magento SUPEE 6788<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">One of the below methods is to be followed to install Magento SUPEE 6788.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Method 1:&nbsp;Install Magento SUPEE 6788 using SSH<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Contact your hosting provider if you don\u2019t know how to set up SSH. Download&nbsp;<em>Magento&nbsp;SUPEE 6788<\/em>&nbsp;Patches files for your Magento Version from&nbsp;<a href=\"https:\/\/experienceleague.adobe.com\/en\/docs\/commerce-operations\/installation-guide\/overview\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Upload the patch into your Magento root directory and run the appropriate SSH command:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For .sh file extension:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sh patch_file_name.sh<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sh PATCH_SUPEE-6788_CE_v1.9.3.2-1.9.3.7_v1-2018-02-23-06-01-40.sh<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For .patch file extension:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>patch \u2014p0 &lt; patch_file_name.patch<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong>&nbsp;Once executed the command, refresh the cache in the Admin under \u201cSystem &gt; Cache Management\u201d so that the changes can be reflected. We strongly recommend that you test all patches in a test environment before taking them live.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Method 2:&nbsp;Install Magento SUPEE 6788 with PrePatched Files<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Download the zip file for your Magento Version for the patch installation. You can also download these&nbsp;<a href=\"https:\/\/github.com\/MeetanshiInc\/Magento-Security-Patches-PrePatched-Files\/tree\/master\/SUPEE-6788\" target=\"_blank\" rel=\"noreferrer noopener\">Pre Patched files from GitHub<\/a>. After downloading the files, just upload it to your Magento root folder.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Magento Version<\/th><th>SUPEE 6788<\/th><\/tr><\/thead><tbody><tr><td>Magento 1.9.2.1<\/td><td><a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/PrePatchedFiles\/SUPEE-6788\/CE-1.9.2.1.zip\">CE-1.9.2.1<\/a><\/td><\/tr><tr><td>Magento 1.9.2.0<\/td><td><a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/PrePatchedFiles\/SUPEE-6788\/CE-1.9.2.0.zip\">CE-1.9.2.0<\/a><\/td><\/tr><tr><td>Magento 1.9.1.1<\/td><td><a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/PrePatchedFiles\/SUPEE-6788\/CE-1.9.1.1.zip\">CE-1.9.1.1<\/a><\/td><\/tr><tr><td>Magento 1.9.1.0<\/td><td><a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/PrePatchedFiles\/SUPEE-6788\/CE-1.9.1.0.zip\">CE-1.9.1.0<\/a><\/td><\/tr><tr><td>Magento 1.9.0.1<\/td><td><a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/PrePatchedFiles\/SUPEE-6788\/CE-1.9.0.1.zip\">CE-1.9.0.1<\/a><\/td><\/tr><tr><td>Magento 1.8.1.0<\/td><td><a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/PrePatchedFiles\/SUPEE-6788\/CE-1.8.1.0.zip\">CE-1.8.1.0<\/a><\/td><\/tr><tr><td>Magento 1.8.0.0<\/td><td><a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/PrePatchedFiles\/SUPEE-6788\/CE-1.8.0.0.zip\">CE-1.8.0.0<\/a><\/td><\/tr><tr><td>Magento 1.7.0.2<\/td><td><a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/PrePatchedFiles\/SUPEE-6788\/CE-1.7.0.2.zip\">CE-1.7.0.2<\/a><\/td><\/tr><tr><td>Magento 1.6.2.0<\/td><td><a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/PrePatchedFiles\/SUPEE-6788\/CE-1.6.2.0.zip\">CE-1.6.2.0<\/a><\/td><\/tr><tr><td>Magento 1.6.1.0<\/td><td><a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/PrePatchedFiles\/SUPEE-6788\/CE-1.6.1.0.zip\">CE-1.6.1.0<\/a><\/td><\/tr><tr><td>Magento 1.5.1.0<\/td><td><a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/PrePatchedFiles\/SUPEE-6788\/CE-1.5.1.0.zip\">CE-1.5.1.0<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">How to check if Magento SUPEE 6788 has been installed correctly?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use&nbsp;<a href=\"https:\/\/www.magereport.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">magereport.com<\/a>&nbsp;to check the accuracy of the installation process.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Magento SUPEE 6788 Installation Possible Issues:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After Magento SUPEE 6788 installation, if you don\u2019t get bash output like \u201cPatch was applied\/reverted successfully\u201d, check the output for any issues. If the issue still persists, it is recommended to update the .htaccess file. First of all, take a backup and replace the default one. If it doesn\u2019t help, we provide advanced solution to follow but implemet it on your own responsibility.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Simply remove the lines 163-195 from the patch file which should start with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>diff --git .htaccess .htaccess<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and end with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>+ <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Additionally, if it helps apply the patch, simply add below lines at the end of your .htaccess file:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"htaccess\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">## Deny access to cron.php\n&lt;Files cron.php>\n\n    ############################################\n    ## uncomment next lines to enable cron access with base HTTP authorization\n    ## http:\/\/httpd.apache.org\/docs\/2.2\/howto\/auth.html\n    ##\n    ## Warning: .htpasswd file should be placed somewhere not accessible from the web.\n    ## This is so that folks cannot download the password file.\n    ## For example, if your documents are served out of \/usr\/local\/apache\/htdocs\n    ## you might want to put the password file(s) in \/usr\/local\/apache\/.\n\n    #AuthName \"Cron auth\"\n    #AuthUserFile ..\/.htpasswd\n    #AuthType basic\n    #Require valid-user\n\n    ############################################\n\n    Order allow,deny\n    Deny from all\n\n&lt;\/Files><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now check if any file has been infected with patch file override. Most of the updated files reside in core structure and they shouldn\u2019t be affected but still it\u2019s wise decision to check files below to check after patch installation:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Any class overriding&nbsp;Mage_Customer_AccountController (magento_root\/app\/code\/core\/Mage\/Customer\/controllers\/AccountController.php).<\/li>\n\n\n\n<li>Custom design theme may override customer registration form where you should simply add a form key right after the \u201cform\u201d tag:<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;input\n    type=\"hidden\"\n    name=\"form_key\"\n    value=\"&lt;?php echo Mage::getSingleton('core\/session')->getFormKey() ?>\"\n\/><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Affected templates are as follows:<\/strong>\n<ul class=\"wp-block-list\">\n<li>magento_root\/app\/design\/frontend\/base\/default\/template\/customer\/form\/register.phtml<\/li>\n\n\n\n<li>magento_root\/app\/design\/frontend\/base\/default\/template\/persistent\/customer\/form\/register.phtml<\/li>\n\n\n\n<li>magento_root\/app\/design\/frontend\/rwd\/enterprise\/template\/customer\/form\/register.phtml<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>For Enterprise Edition:<\/strong>\n<ul class=\"wp-block-list\">\n<li>magento_root\/app\/design\/frontend\/enterprise\/default\/template\/customer\/form\/register.phtml<\/li>\n\n\n\n<li>magento_root\/app\/design\/frontend\/enterprise\/default\/template\/persistent\/customer\/form\/register.phtml<\/li>\n\n\n\n<li>magento_root\/app\/design\/frontend\/rwd\/enterprise\/template\/customer\/form\/register.phtml<\/li>\n\n\n\n<li>magento_root\/app\/design\/frontend\/rwd\/enterprise\/template\/persistent\/customer\/form\/register.phtml<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Forgot password reset form may have overridden, here, replace&nbsp;the \u201cform\u201d opening tag with the below&nbsp;one:<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;form\n    action=\"&lt;?php echo $this->getUrl('*\/*\/resetpasswordpost'); ?>\"\n    method=\"post\"\n    id=\"form-validate\"\n><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Affected templates are as follows:<\/strong>\n<ul class=\"wp-block-list\">\n<li>magento_root\/app\/design\/frontend\/base\/default\/template\/customer\/form\/resetforgottenpassword.phtml<\/li>\n\n\n\n<li>magento_root\/app\/design\/frontend\/rwd\/default\/template\/customer\/form\/resetforgottenpassword.phtml<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>For Enterprise Edition:<\/strong>\n<ul class=\"wp-block-list\">\n<li>magento_root\/app\/design\/frontend\/enterprise\/default\/template\/customer\/form\/resetforgottenpassword.phtml<\/li>\n\n\n\n<li>\u201ccustomer_account_changeforgotten\u201d may have replaced Customer layout \u201ccustomer_account_resetpassword\u201d.&nbsp;So, if you have magento_root\/app\/design\/frontend\/custom_package\/custome_theme\/layout\/customer.xml or custom theme with the same file in \u201cdefault\u201d, \u201crwd\u201d or \u201centerprise\u201d packages, replace:<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xml\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;customer_account_resetpassword translate=\"label\">\n.........\n&lt;\/customer_account_resetpassword><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">with:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xml\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;customer_account_changeforgotten translate=\"label\">\n    &lt;label>Reset a Password&lt;\/label>\n    &lt;remove name=\"right\"\/>\n    &lt;remove name=\"left\"\/>\n    &lt;reference name=\"head\">\n        &lt;action method=\"setTitle\" translate=\"title\" module=\"customer\">\n            &lt;title>Reset a Password&lt;\/title>\n        &lt;\/action>\n    &lt;\/reference>\n    &lt;reference name=\"root\">\n        &lt;action method=\"setTemplate\">\n            &lt;template>page\/1column.phtml&lt;\/template>\n        &lt;\/action>\n        &lt;action method=\"setHeaderTitle\" translate=\"title\" module=\"customer\">\n            &lt;title>Reset a Password&lt;\/title>\n        &lt;\/action>\n    &lt;\/reference>\n    &lt;reference name=\"content\">\n        &lt;block type=\"customer\/account_changeforgotten\" name=\"changeForgottenPassword\"\n               template=\"customer\/form\/resetforgottenpassword.phtml\"\/>\n    &lt;\/reference>\n&lt;\/customer_account_changeforgotten><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Store owners who don\u2019t want to get into the task of installation may check&nbsp;<em><strong><a href=\"https:\/\/meetanshi.com\/magento-security-patches-installation-service.html\">Magento Security Patches Installation Service<\/a>!<\/strong><\/em><br>Also, Magento Upgrade is advisable over patch installation in order to get the latest features and higher security for your Magento stores! To get your Magento store upgraded to the latest version, check our&nbsp;<em><strong><a href=\"https:\/\/meetanshi.com\/magento-upgrade-service.html\">Magento Upgrade Service<\/a>.<\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Securing the stores against any potential attacks or threats is a must factor for any E-commerce store. To serve this purpose, Magento releases Security Patches&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=61"}],"version-history":[{"count":6,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/61\/revisions"}],"predecessor-version":[{"id":23096,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/61\/revisions\/23096"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}