Uploading Magento Patches: A Step-by-Step Guide for Non-Developers
As a non-developer, encountering technical issues like the need to apply security patches in your Magento CE installation can feel daunting. In this guide, we’ll walk you through the process of downloading and uploading the SUPEE-5344 and SUPEE-1533 patches step by step.
Understanding the Patch Application Process
Before we dive into the specifics, let’s clarify what these patches are for. Magento regularly releases security updates to protect your online store from potential vulnerabilities. The patches provided (like SUPEE-5344 and SUPEE-1533) apply these fixes directly to your existing codebase.
Downloading the Patches
First, you’ll need to download the patch files from the official Magento security center: https://magento.com/security/patch
Look for the patches corresponding to SUPEE-5344 and SUPEE-1533. These will be in .sh format.
Accessing Your Magento Installation
Common Paths on Shared Hosting
If you’re on a shared hosting provider like cPanel, your root directory is typically located under the public_html or www folder. For example:
cgi-bin
â public_html (or www)
â magento
â app
â etc
â media
Creating the Root Directory
If you don’t see a public_html directory, you can create it through your cPanel or by connecting via SFTP. Simply right-click and select “Create New Folder.”
Ensure the name is exactly public_html. It’s case-sensitive.
Uploading the Patches Correctly
Avoid the cgi-bin Folder
Uploading patches to the cgi-bin folder will likely not work because this area is reserved for server scripts. The Magento installation should be located under the public_html directory at its root level, or in a subdirectory like magento.
Uploading to the Correct Location
Navigate to your Magento installation’s root directory (e.g., /public_html/magento).
Now, upload your downloaded .sh patch files here. Make sure they’re placed directly in this main folder, not inside any subdirectories.
Applying the Patches via SSH (Optional but Recommended)
While you can apply patches manually through the command line or cPanel’s terminal, using an SFTP client like FileZilla and a text editor is simpler for most users. Here’s how:
- Open your SFTP client.
- Connect to your server with your credentials.
- Navigate to the main Magento installation directory (e.g.,
/public_html/magento). - Right-click on one of your downloaded patch files, like
patches/SUPEE-5344_v1_ce.sh. - Click “View/Edit” or a similar option.
- You should see the contents of the file. To apply it, simply double-click anywhere inside the text area.
The system will execute the script, applying the patch to your Magento installation.
Verifying Successful Application
After running all patches:
- Log out of your SFTP client.
- Refresh your store’s homepage in a web browser.
- Check if any patch-specific messages remain. If so, repeat the upload and application process until they disappear completely.
Conclusion: Confidently Managing Magento Patches
While this process involves some technical steps, it is entirely achievable for non-developers with careful attention to detail. Remember:
- Always download patches from official sources.
- Place them directly in your Magento installation’s root directory (not inside subfolders).
- If possible, use an SFTP client for easier patch application.
If you encounter any issues or need further assistance, don’t hesitate to reach out to Laravel Company, where our development experts are ready to help you navigate the Magento ecosystem.