cancel
Showing results for 
Search instead for 
Did you mean: 

How to apply the security patch if no sh rights

SOLVED

How to apply the security patch if no sh rights

I do not have shell access on my server. How do I apply the path.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to apply the security patch if no sh rights

 

  1. Create a PHP file called magento-patch.php using notepad or your favorite editor

 

<?php
print("<PRE>");
passthru("/bin/bash PATCH_SUPEE-NAME OF PATCH.sh");
print("</PRE>");
?>

2. upload your patch file to your root of your website

 

3. Visit your website and run http://www.domain.com/magento-patch.php

 

Your patch should be applied. 

 

Do this on a test site first!

 

 

Magento Moderator since 2009
Keep Calm and Clear Cache!

View solution in original post

2 REPLIES 2

Re: How to apply the security patch if no sh rights

 

  1. Create a PHP file called magento-patch.php using notepad or your favorite editor

 

<?php
print("<PRE>");
passthru("/bin/bash PATCH_SUPEE-NAME OF PATCH.sh");
print("</PRE>");
?>

2. upload your patch file to your root of your website

 

3. Visit your website and run http://www.domain.com/magento-patch.php

 

Your patch should be applied. 

 

Do this on a test site first!

 

 

Magento Moderator since 2009
Keep Calm and Clear Cache!

Re: How to apply the security patch if no sh rights

(Thanks Brent for the response.)  Please note this is a Magento 2 question area, not Magento 1.  I think Brent answered your Magento 1 question.

 

For Magento 2, there is a built in "install wizard" (which we might rename in future to "setup tool" or similar to more accurate reflect its purpose). It will be able to apply patches to your site via the web interface.