Security in E-commerce stores is very important. Magento knows its important and make available Security Patches on timely basis to the store owners to protect stores from potential threats and attack and ensure smooth functioning.
One such Security Patch Magento SUPEE 7405 was released on February 23, 2016. The installation of the patch enables support for PHP 5.3 and address issues with upload file permissions, merging carts, and SOAP APIs.
Installation of Security Patch Magento SUPEE 7405
There are two methods for the installation process of Magento SUPEE 7405 which are discussed as below:
Method 1: Install Magento SUPEE 7405 using SSH
Upload the patch into your Magento root directory and run the appropriate SSH command:
For .sh file extension:
For .patch file extension:
patch —p0 < patch_file_name.patch
Note: Once executed the command, refresh the cache in the Admin under “System > Cache Management” so that the changes can be reflected. We strongly recommend that you test all patches in a test environment before taking them live.
Method 2: Install Magento SUPEE 7405 with PrePatched Files
Download the zip file for your Magento Version for the patch installation. You can also download these Pre Patched files from GitHub. After downloading the files, just upload it to your Magento root folder.
|Magento Version||SUPEE 7405|
How to check if Magento SUPEE 7405 has been installed correctly?
Visit magereport.com to check the correctness of the process.
Possible issues in Installation of Magento SUPEE 7405:
- PHP version issue
It is recommended to use latest PHP versions i.e greater or equal to PHP 5.4.0 in order to make this patch work successfully as the new short format only works with latest PHP verions.
- Admin panel login issue
Immediately after patching, you may not be able to login to admin panel. To resolve the issue, you have to take away every session file and remove other session storage types and delete browser cookies in order to avoid difficulty in logging into the admin panel.
- Image upload issue resulted from incorrect file permission for newly uploaded images
The patch affect file permission of the image uploaded from Magento backend. Before patching, image files used to have 0777 permission which gets changed to 0640 and 0750 which make them inaccessible for users. There are two ways to resolve this issue:
- Manually change the 0640/0750 permission from the file lib/Varien/File/Uploader.php
- Make the webserver the owner of the files from the path below. Here, generally the user name is www-data or apache
chown -R web-server-user-name magento/root/path
Please leave a comment below if you have any doubts about the above-discussed methods. We’d like to help you out! We strongly recommend having upgraded version of Magento, i.e Magento Version 188.8.131.52 that includes SUPEE 7405 along with other patches. For more information, visit Magento Upgrade Service.
Installation of Magento Security Patches can be tricky and to avoid any data loss, you may want to have a look at Magento Security Patches Installation Service to get it done by professionals!
Hopefully, our blog is useful to you! Let us know your reviews about this guide through commenting and reward it with 5 stars now!
Get Weekly Updates
Never miss Magento tips, tricks, tutorials, and news.
Thank you for subscribing.
Something went wrong.