Magento / Server Setup

Magento 1.9.x with PHP 7.2

by , , revisited on


Magento 1 is being phased out, but considering the 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. Here’s how.

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
# 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
Literature:
  • https://blog.chapagain.com.np/update-upgrade-magento-1-x-to-latest-version-via-both-browser-command-line/

Leave a Reply

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