{"id":7419,"date":"2019-07-02T06:13:44","date_gmt":"2019-07-02T10:13:44","guid":{"rendered":"http:\/\/staging.modulebazaar.com\/blog\/?p=7419"},"modified":"2019-07-31T05:09:04","modified_gmt":"2019-07-31T09:09:04","slug":"upgrade-magento-store-to-support-php-7","status":"publish","type":"post","link":"https:\/\/www.modulebazaar.com\/blog\/upgrade-magento-store-to-support-php-7\/","title":{"rendered":"Upgrade your Magento 1.9 Store to Support PHP 7"},"content":{"rendered":"\n<p>Out of all the websites using PHP, around 68% of websites still use PHP 5.x. PHP 5.6 support has ended in Dec 2018. But how would that matter for a website owner? The situation is just a ticking time bomb for <a href=\"https:\/\/www.modulebazaar.com \"><strong>e-commerce websites<\/strong><\/a> continuing to run on the unsupported PHP 5.x versions. Any identification of a mass security flaw in PHP 5.x would spell disaster without any periodic security updates. Your website lying exposed to the hackers especially being an eCommerce site poses a greater threat. It would rather be prudent, to keep your website technology updated rather than to lose business and customers.&nbsp;&nbsp;<\/p>\n\n\n\n<p style=\"font-size:0\"> Apart from the security aspect, PHP 7 brings in a host of significant performance upgrades to the table. PHP 7 has shown 4x faster performance increase for websites running on Magento 1.x.&nbsp; Optimize the <g class=\"gr_ gr_69 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Grammar only-ins replaceWithoutSep\" id=\"69\" data-gr-id=\"69\">loading<\/g> time of your website gives a better user experience to your customers.  This would mean a lower memory consumption of your website. Your website would perform better with even limited hardware resources. <a href=\"https:\/\/www.modulebazaar.com\/\"><strong>Magento 2<\/strong><\/a> has raised the bar and has mentioned PHP 7 as a minimum requirement. Prior to installing the upgrade for providing PHP 7.2 compatibility, there are some security patches which have to be applied. &nbsp; These patches address various vulnerabilities reported in Magento like remote code execution (RCE), cross-site request forgery (CSRF), SQL Injection (SQLi), Security Implementation Flaw and Security Misconfiguration.&nbsp;&nbsp;<\/p>\n\n\n\n<h2>Significance of PHP upgrades<\/h2>\n\n\n\n<p>Apart from the security aspect, PHP 7 brings in a host of significant performance upgrades to the table. PHP 7 has shown 4x faster performance increase for websites running on Magento 1.x.&nbsp; Optimize the loading time of your website gives a <a href=\"https:\/\/www.usability.gov\/what-and-why\/user-experience.html\"><strong>better user experience<\/strong><\/a> to your customers.  This would mean a lower memory consumption of your website. Your website would perform better with even limited hardware resources. <strong>Magento 2<\/strong> has raised the bar and has mentioned PHP 7 as a minimum requirement. Prior to installing the upgrade for providing PHP 7.2 compatibility, there are some security patches which have to be applied. &nbsp; These patches address various vulnerabilities reported in Magento like remote code execution (RCE), cross-site request forgery (CSRF), SQL Injection (SQLi), Security Implementation Flaw and Security Misconfiguration.&nbsp;&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Apart from the security aspect, PHP 7 brings in a host of significant performance upgrades to the table. PHP 7 has shown 4x faster performance increase for websites running on Magento 1.x.&nbsp; Optimize the loading time of your website gives a better user experience to your customers.  This would mean a lower memory consumption of your website. Your website would perform better with even limited hardware resources. <strong>Magento 2<\/strong> has raised the bar and has mentioned PHP 7 as a minimum requirement. Prior to installing the upgrade for providing PHP 7.2 compatibility, there are some security patches which have to be applied. &nbsp; These patches address various vulnerabilities reported in Magento like remote code execution (RCE), cross-site request forgery (CSRF), SQL Injection (SQLi), Security Implementation Flaw and Security Misconfiguration.&nbsp;&nbsp;<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><strong>Read also: <\/strong><a href=\"https:\/\/www.modulebazaar.com\/blog\/do-payment-transactions-with-payeezy-first-data-for-magento-2\/\"><strong>Do Payment Transactions With Payeezy First Data For Magento 2<\/strong><\/a><\/p><\/blockquote>\n\n\n\n<p>There are some situations where your store could be exposed to hackers. Users with permission to generate sales orders from the Admin panel can use gift card functionality to manipulate request data and inject a malicious string that is later unserialized. An administrator user with access to the Enterprise Target rule module can create rule-based product relations that can be manipulated to trigger remote code execution. \t<\/p>\n\n\n\n<p>By manipulating request data when saving a category, a user can insert a malicious string into the database that can be used in a subsequent request to perform SQL injection. This injected code can be used to trigger arbitrary (with the proviso they fit in the 255 char field) insert and update commands.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong><em>Steps to Convert Magento1.9 store to support PHP7<\/em><\/strong><\/p>\n\n\n\n<p>To achieve PHP 7.2 support we need to install the required patches from Magento packages as per the link below.&nbsp;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/magento.com\/tech-resources\/download#download2240\n<\/div><\/figure>\n\n\n\n<p>Please choose the patches as per the version of your Magento store.&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/aKrckPWsnU49EKBuHTuKmkzLeuMD47s_Mt_8R6RMeD7dFsEezdp-P5rn1l1qX3_zLO3RqTSj4Zd1KBXOwWG1XBs3leY3KQGTP0g7-z8b5z07lx7D6184qMBUFFo2aNsSponQmE41\" alt=\"patches\"\/><\/figure>\n\n\n\n<p>&nbsp;For example, if you want to upgrade your store in 1.9.2.4 to support PHP 7.2, following are the Patch requirements: SUPEE-10752, SUPEE-10570, SUPEE-10415, SUPEE-10266, SUPEE-9767 V2, SUPEE-9652, SUPEE-8788 V2.&nbsp;<\/p>\n\n\n\n<ol><li>Download all patches and copy them to the root of Magento instance.<\/li><li>Run the below commands one by one in order&nbsp;<\/li><\/ol>\n\n\n\n<p>&nbsp;&nbsp;\tsh PATCH_SUPEE-10752_CE_v1.9.2.4_v1-2018-06-11-04-33-22.sh<\/p>\n\n\n\n<p>&nbsp;&nbsp;\tsh PATCH_SUPEE-10570_CE_v1.9.2.4_v1-2018-02-28-04-53-53.sh<\/p>\n\n\n\n<p>&nbsp;&nbsp;\tsh PATCH_SUPEE-10415_CE_1.9.2.4_v1-2017-11-27-06-51-32.sh<\/p>\n\n\n\n<p>&nbsp;&nbsp;\tsh PATCH_SUPEE-10266_CE_1.9.2.4_v1-2017-09-13-06-37-37.sh<\/p>\n\n\n\n<p>&nbsp;&nbsp;\tsh PATCH_SUPEE-9767_CE_1.9.3.0_v2-2017-07-11-11-04-56.sh<\/p>\n\n\n\n<p>&nbsp;&nbsp;\tsh PATCH_SUPEE-9652_v2-2017-02-07-01-18-38.sh<\/p>\n\n\n\n<p>&nbsp;&nbsp; sh PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh<\/p>\n\n\n\n<p>       3.Once you have completed Step 2 run the below command&nbsp;<\/p>\n\n\n\n<p>\tpatch -p1 &lt; PATCH-1.9.2.0-1.9.2.4_PHP7-2018-09-13-08-05-20.2_v2<\/p>\n\n\n\n<p>All done now. Your site will now start to load in PHP <g class=\"gr_ gr_12 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style multiReplace\" id=\"12\" data-gr-id=\"12\">7.2 &nbsp;.<\/g> You should now see a notable difference in the website\u2019s loading. Enjoy the power of PHP 7. Provide a faster and secure shopping experience <g class=\"gr_ gr_11 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Grammar multiReplace\" id=\"11\" data-gr-id=\"11\">to<\/g> your customers. Need help in upgrading your M<g class=\"gr_ gr_21 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace\" id=\"21\" data-gr-id=\"21\">agento<\/g> store or want to have one built from scratch? Reach out to us on <a href=\"mailto:sales@egrovesys.com\">sales@egrovesys.com<\/a>.<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Out of all the websites using PHP, around 68% of websites still use PHP 5.x. PHP 5.6 support has ended in Dec 2018. But how would that matter for a website owner? The situation is just a ticking time bomb for e-commerce websites continuing to run on the unsupported PHP 5.x versions. Any identification of a mass security flaw in PHP 5.x would spell disaster without any periodic security updates. Your website lying exposed to the hackers especially being an eCommerce site poses a greater threat. It would rather be prudent, to keep your website technology updated rather than to lose business and customers.&nbsp;&nbsp; Apart from the security aspect, PHP 7 brings in a host of significant performance upgrades to the table. PHP 7 has shown 4x faster performance increase for websites running on Magento 1.x.&nbsp; Optimize the loading time of your website gives a better user experience to your customers. This would mean a lower memory consumption of your website. Your website would perform better with even limited hardware resources. Magento 2 has raised the bar and has mentioned PHP 7 as a minimum requirement. Prior to installing the upgrade for providing PHP 7.2 compatibility, there are some security [&hellip;]<\/p>\n","protected":false},"author":42,"featured_media":7421,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1100,1141],"tags":[1108,980],"yst_prominent_words":[1432,1435,1438,1433,1437,1441,1448,1440,1446,1430,1442,1381,1434,1431,1436,1447,1439,1444,1445,1443],"_links":{"self":[{"href":"https:\/\/www.modulebazaar.com\/blog\/wp-json\/wp\/v2\/posts\/7419"}],"collection":[{"href":"https:\/\/www.modulebazaar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.modulebazaar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.modulebazaar.com\/blog\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/www.modulebazaar.com\/blog\/wp-json\/wp\/v2\/comments?post=7419"}],"version-history":[{"count":7,"href":"https:\/\/www.modulebazaar.com\/blog\/wp-json\/wp\/v2\/posts\/7419\/revisions"}],"predecessor-version":[{"id":7588,"href":"https:\/\/www.modulebazaar.com\/blog\/wp-json\/wp\/v2\/posts\/7419\/revisions\/7588"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.modulebazaar.com\/blog\/wp-json\/wp\/v2\/media\/7421"}],"wp:attachment":[{"href":"https:\/\/www.modulebazaar.com\/blog\/wp-json\/wp\/v2\/media?parent=7419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.modulebazaar.com\/blog\/wp-json\/wp\/v2\/categories?post=7419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.modulebazaar.com\/blog\/wp-json\/wp\/v2\/tags?post=7419"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.modulebazaar.com\/blog\/wp-json\/wp\/v2\/yst_prominent_words?post=7419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}