Magento / Server Setup

Magento 1.9.x with PHP 7.2

by , , revisited on

We have by far the largest RPM repository with NGINX module packages and VMODs for Varnish. If you want to install NGINX, Varnish, and lots of useful performance/security software with smooth yum upgrades for production use, this is the repository for you.
Active subscription is required.

Magento 1 is being phased out, but considering how bad Magento 2.x is, it might be better to stick with the good old Magento 1.9.

Magento 1 is very light in comparison to Magento 2 and it can run on a more recent and faster PHP 7.2 engine.

All you need to do is upgrade your minor Magento version.

In this post, we’re going to cover the steps on how to upgrade your Magento 1.9.x to the latest version which:

  • already includes all the most recent security patches
  • supports PHP 7.2

Steps for upgrade Magento 1.9.x to latest Magento 1.9.x version

n98-magerun sys:maintenance --on
sed -i.orig "s@CURLOPT_SSL_CIPHER_LIST, 'TLSv1'@CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1@" downloader/lib/Mage/HTTP/Client/Curl.php
n98-magerun cache:disable
chmod +x ./mage
./mage mage-setup
./mage config-set preferred_state stable
./mage sync
# the following command will take minutes and may produce no output, so be patient:
./mage upgrade-all
./mage upgrade-all --force # <<-- run in previous command ended up with errors
n98-magerun index:reindex:all
# important: runs database migration (upgrade scripts), alternatively - access website while caches are off to trigger the same
n98-magerun sys:setup:run
n98-magerun cache:flush
n98-magerun cache:enable
n98-magerun sys:maintenance --off
  • https://blog.chapagain.com.np/update-upgrade-magento-1-x-to-latest-version-via-both-browser-command-line/

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.