Updating Magento
Keeping your Magento installation up to date is critical for security, stability, and access to new features. On ruachost.com, you can update Magento using either Softaculous (for Magento 1.x only) or the Magento Command-Line Interface (CLI) (for Magento 2.x).
Why Update Magento?
Section titled “Why Update Magento?”- Security → Updates patch vulnerabilities and protect customer data.
- Stability → Bug fixes improve site reliability.
- Features → Gain access to new Magento functionality.
Methods to Update Magento
Section titled “Methods to Update Magento”Method 1: Softaculous (Magento 1.x only)
Section titled “Method 1: Softaculous (Magento 1.x only)”If you installed Magento 1.x using Softaculous, you can also update it through Softaculous:
- Log in to your ruachost.com CPanel.
- Go to Softaculous Apps Installer → Magento.
- Select your installation.
- Click Upgrade. ⚠️ Note: This method does not apply to Magento 2.x.
Method 2: Manual Update via CLI (Magento 2.x)
Section titled “Method 2: Manual Update via CLI (Magento 2.x)”For Magento 2.x, updates must be done using the command line:
-
Log in to your hosting account via SSH.
-
Navigate to your Magento installation directory:
cd ~/public_html -
Run the upgrade command:
Terminal window php bin/magento setup:upgrade -
Clear caches:
Terminal window php bin/magento cache:flush -
Recompile code (if necessary):
Terminal window php bin/magento setup:di:compile -
Deploy static content:
Terminal window php bin/magento setup:static-content:deploy
✅ Your Magento installation is now updated.
Important Notes
Section titled “Important Notes”- Always back up your site and database before updating.
- Test updates in a staging environment before applying to production.
- Some updates may require composer if Magento was installed via Composer.
- If you encounter errors, disable custom extensions temporarily and retry.