Magento Security Upgrade: A Safer Road from 1.9.0.1 to 1.9.3.4
Unusual activities on your Magento site? Don’t panicâyou’re about to secure it with this step-by-step upgrade guide to version 1.9.3.4.
The Need for Upgrading
Version 1.9.0.1 is nearly a decade old and lacks crucial security patches that protect against vulnerabilities like remote code execution (CVE-2021-26438). Upgrading is your only option to restore peace of mind.
Pre-Upgrade Planning: The Groundwork
Backup Everything
First, follow the Magento backup guide rigorously. Don’t skip this stepâit’s your insurance policy in case anything goes wrong.
# Backup your database
mysqldump -p <dbname> > db_backup.sql
# Compress and download the files
tar -czvf magento_backup.tar.gz /path/to/magento
Review Changes
Check if any core file has been modified locally. If so, you’ll have to reapply those changes post-upgrade.
The Upgrade Process: Step by Step
Stage 1: Prepare the Infrastructure
Update PHP and MySQL Versions (If Required)
Ensure your server meets the 1.9.3.4 requirements. For PHP, it’s at least version 5.6. You can update PHP with your hosting provider or use add-apt-repository on Ubuntu.
Enable Maintenance Mode
Prevent users from accessing the site during upgrade:
bin/magento maintenance:enable
Stage 2: Update Magento Files
Download the New Version
Grab the official 1.9.3.4 release.
Replace Core Files
Upload the new files, replacing only the core files.
Post-Upgrade Cleanup and Optimization
Compile and Deploy Static Content
Optimize performance:
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
Cache Flush
Clear all cache types:
bin/magento cache:flush
Verifying the Upgrade
- Check for missing files or errors in logs.
- Test all major features (like checkout, admin panel).
- Inspect your site’s security headers with tools like https://securityheaders.com/.
Conclusion: A Safer Magento Site
Your Magento 1.9.3.4 upgrade is complete! Your site now has the latest security patches against known vulnerabilities.
Remember, upgrades are only one part of Magento security. Regularly monitor your server logs, update extensions promptly, and lock down permissions using LaravelCompany’s Magento Security Best Practices guide.
Upgrading can be daunting, but with this clear roadmap, you’re ready to secure your site against the evolving threat landscape.