{"id":16469,"date":"2019-12-06T13:49:10","date_gmt":"2019-12-06T18:49:10","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/administering-magento-2-on-aws-platform\/"},"modified":"2020-02-08T09:42:53","modified_gmt":"2020-02-08T14:42:53","slug":"administering-magento-2-on-aws-platform","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=16469","title":{"rendered":"Administering Magento 2 on AWS Platform"},"content":{"rendered":"<p><strong>Varnish:<\/strong><br \/>\nConfiguring Varnish Server i.e. a Cache Server<br \/>\n<a href=\"https:\/\/varnish-cache.org\/docs\/5.1\/reference\/varnishd.html#http-resp-hdr-len\">https:\/\/varnish-cache.org\/docs\/5.1\/reference\/varnishd.html#http-resp-hdr-len<\/a><\/p>\n<p>\/opt\/bitnami\/varnish\/varnishd<\/p>\n<p>varnishd [-a address[:port][,PROTO]] [-b host[:port]] [-C] [-d] [-F] [-f config] [-h type[,options]] [-I clifile] [-i identity] [-j jail[,jailoptions]] [-l vsl[,vsm]] [-M address:port] [-n name] [-P file] [-p param=value] [-r param[,param&#8230;]] [-S secret-file] [-s [name=]kind[,options]] [-T address[:port]] [-t TTL] [-V] [-W waiter] [-x parameter|vsl|cli|builtin] [-?]<\/p>\n<p>&#8212;<\/p>\n<p>How to fix 503: Backend Fetch error<br \/>\nGive it a try; no guarantee. Purge Varnish cache as well. magento cache clearing also causes varnish cache Purge<br \/>\n<a href=\"https:\/\/community.magento.com\/t5\/Magento-2-x-Programming\/how-to-fix-Error-503-Backend-fetch-failed\/td-p\/84061\">https:\/\/community.magento.com\/t5\/Magento-2-x-Programming\/how-to-fix-Error-503-Backend-fetch-failed\/td-p\/84061<\/a><\/p>\n<p>&#8212;-<\/p>\n<p>Configure And Use Varnish (TM)<\/p>\n<p>See if your version and platform is right before applying<br \/>\n<a href=\"https:\/\/docs.bitnami.com\/bch\/apps\/wordpress\/administration\/configure-use-varnish\/\">https:\/\/docs.bitnami.com\/bch\/apps\/wordpress\/administration\/configure-use-varnish\/<\/a><\/p>\n<hr \/>\n<p>Deploy content<\/p>\n<p>setup:static-content:deploy [-f|&#8211;force] [-s|&#8211;strategy [STRATEGY]] [-a|&#8211;area [AREA]] [&#8211;exclude-area [EXCLUDE-A<br \/>\nREA]] [-t|&#8211;theme [THEME]] [&#8211;exclude-theme [EXCLUDE-THEME]] [-l|&#8211;language [LANGUAGE]] [&#8211;exclude-language [EXCL<br \/>\nUDE-LANGUAGE]] [-j|&#8211;jobs [JOBS]] [&#8211;max-execution-time [MAX-EXECUTION-TIME]] [&#8211;symlink-locale] [&#8211;content-versi<br \/>\non CONTENT-VERSION] [&#8211;refresh-content-version-only] [&#8211;no-javascript] [&#8211;no-css] [&#8211;no-less] [&#8211;no-images] [&#8211;no<br \/>\n-fonts] [&#8211;no-html] [&#8211;no-misc] [&#8211;no-html-minify] [&#8211;] [&lt;languages&gt;&#8230;]<\/p>\n<p>By<\/p>\n<p><em><strong>Sayed Ahmed<\/strong><br \/>\n<\/em><\/p>\n<p><em><strong>BSc. Eng. in Comp. Sc. &amp; Eng. (BUET)<\/strong><\/em><br \/>\n<em><strong>MSc. in Comp. Sc. (U of Manitoba, Canada)<\/strong><\/em><br \/>\n<em><strong>MSc. in Data Science and Analytics (Ryerson University, Canada)<\/strong><\/em><br \/>\n<em><strong>Linkedin<\/strong>: <a href=\"https:\/\/ca.linkedin.com\/in\/sayedjustetc\">https:\/\/ca.linkedin.com\/in\/sayedjustetc<\/a><br \/>\n<\/em><\/p>\n<p><em><strong>Blog<\/strong>: <a href=\"http:\/\/bangla.salearningschool.com\/\">http:\/\/Bangla.SaLearningSchool.com<\/a>, <a href=\"http:\/\/sitestree.com\">http:\/\/SitesTree.com<\/a> <\/em><br \/>\n<em><strong>Online and Offline Training<\/strong>: <a href=\"http:\/\/training.SitesTree.com\">http:\/\/Training.SitesTree.com<\/a> <\/em><\/p>\n<p><em>Get access to courses on Big Data, Data Science, AI, Cloud, Linux, System Admin, Web Development and Misc. related. Also, create your own course to sell to others to earn a revenue.<\/em><br \/>\n<a href=\"http:\/\/sitestree.com\/training\/\">http:\/\/sitestree.com\/training\/<\/a><\/p>\n<p><em><strong>I<\/strong>f you want to contribute to the operation of this site (Bangla.SaLearn) including occasional free and\/or low cost online training (using Zoom.us): <a href=\"http:\/\/training.sitestree.com\/\">http:\/\/Training.SitesTree.com<\/a> (or charitable\/non-profit work in the education\/health\/social service sector), you can financially contribute to: safoundation at <a href=\"http:\/\/salearningschool.com\">salearningschool.com<\/a> using Paypal or Credit Card (on <\/em><a href=\"http:\/\/sitestree.com\/training\/enrol\/index.php?id=114\">http:\/\/sitestree.com\/training\/enrol\/index.php?id=114<\/a> <em>).<\/em><\/p>\n<p><strong><em>Affiliate Links: Deals on Amazon :<\/em><\/strong><br \/>\n<em>Hottest Deals on Amazon USA: <a href=\"http:\/\/tiny.cc\/38lddz\">http:\/\/tiny.cc\/38lddz<\/a><br \/>\n<\/em><br \/>\n<em>Hottest Deals on Amazon CA: <a href=\"http:\/\/tiny.cc\/bgnddz\">http:\/\/tiny.cc\/bgnddz<\/a><br \/>\n<\/em><br \/>\n<em>Hottest Deals on Amazon Europe: <a href=\"http:\/\/tiny.cc\/w4nddz\">http:\/\/tiny.cc\/w4nddz<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Varnish: Configuring Varnish Server i.e. a Cache Server https:\/\/varnish-cache.org\/docs\/5.1\/reference\/varnishd.html#http-resp-hdr-len \/opt\/bitnami\/varnish\/varnishd varnishd [-a address[:port][,PROTO]] [-b host[:port]] [-C] [-d] [-F] [-f config] [-h type[,options]] [-I clifile] [-i identity] [-j jail[,jailoptions]] [-l vsl[,vsm]] [-M address:port] [-n name] [-P file] [-p param=value] [-r param[,param&#8230;]] [-S secret-file] [-s [name=]kind[,options]] [-T address[:port]] [-t TTL] [-V] [-W waiter] [-x parameter|vsl|cli|builtin] [-?] &#8212; &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=16469\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1910,1907,182],"tags":[],"class_list":["post-16469","post","type-post","status-publish","format-standard","hentry","category-ai-ml-ds-rl-dl-nn-nlp-data-mining-optimization","category-magento-2","category---blog","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":15984,"url":"http:\/\/bangla.sitestree.com\/?p=15984","url_meta":{"origin":16469,"position":0},"title":"Upgrade magento from 2.3.1 to 2.3.2","author":"Sayed","date":"August 19, 2019","format":false,"excerpt":"Upgrade Magento from 2.3.1 to 2.3.2 From 2.3.0 to 2.3.2 should also work; from some other earlier versions may or may not work.. A very similar approach worked for me (Note: I have no interest to work in the industry with Magento). Also, after upgrade, check the error log and\/or\u2026","rel":"","context":"In &quot;Magento 2&quot;","block_context":{"text":"Magento 2","link":"http:\/\/bangla.sitestree.com\/?cat=1907"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":76369,"url":"http:\/\/bangla.sitestree.com\/?p=76369","url_meta":{"origin":16469,"position":1},"title":"Solution that worked for the issue: Your current session has been expired. for Magento2","author":"sayedjustetc","date":"November 17, 2024","format":false,"excerpt":"Solution that worked for the issue: Your current session has been expired. for Magento2 cat shell-scripts\/temp.sh# fix misc issues, can be routine sudo php bin\/magento maintenance:enable#sudo rm -rf var\/cache\/#sudo rm -rf generated\/sudo chmod +x bin\/magentosudo php bin\/magento setup:upgrade#sudo php bin\/magento setup:static-content:deploy -fsudo php bin\/magento setup:di:compilesudo php bin\/magento indexer:reindexsudo php bin\/magento\u2026","rel":"","context":"In &quot;Root&quot;","block_context":{"text":"Root","link":"http:\/\/bangla.sitestree.com\/?cat=1"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":17077,"url":"http:\/\/bangla.sitestree.com\/?p=17077","url_meta":{"origin":16469,"position":2},"title":"Magento 2 Useful and Important CLI Commands List","author":"Sayed","date":"May 24, 2020","format":false,"excerpt":"\"Cache CLI (Status, Enable, Disable, Clean, Flush) php bin\/magento cache:clean Cleans cache type(s) php bin\/magento cache:disable Disables cache type(s) php bin\/magento cache:enable Enables cache type(s) php bin\/magento cache:flush Flushes cache storage used by cache type(s) php bin\/magento cache:status\" Checks cache status \" Also Check: http:\/\/bangla.salearningschool.com\/recent-posts?s=bin%2Fmagento Also Check: http:\/\/bangla.salearningschool.com\/recent-posts?s=magento Also, Check:\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26262,"url":"http:\/\/bangla.sitestree.com\/?p=26262","url_meta":{"origin":16469,"position":3},"title":"Magento 2 Useful and Important CLI Commands List #Root","author":"Author-Check- Article-or-Video","date":"April 21, 2021","format":false,"excerpt":"\"Cache CLI (Status, Enable, Disable, Clean, Flush) php bin\/magento cache:clean Cleans cache type(s) php bin\/magento cache:disable Disables cache type(s) php bin\/magento cache:enable Enables cache type(s) php bin\/magento cache:flush Flushes cache storage used by cache type(s) php bin\/magento cache:status\" Checks cache status \" Also Check: http:\/\/bangla.salearningschool.com\/recent-posts?s=bin%2Fmagento Also Check: http:\/\/bangla.salearningschool.com\/recent-posts?s=magento Also, Check:\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":13378,"url":"http:\/\/bangla.sitestree.com\/?p=13378","url_meta":{"origin":16469,"position":4},"title":"Use custom email server for Magento based ecommerce shops","author":"Sayed","date":"October 18, 2017","format":false,"excerpt":"Use custom email server for Magento based ecommerce shops You will need to change code on the file : app\/code\/core\/Mage\/Core\/Model\/Email\/Template.php Comment out the existing getMail() method. And replace the method with the following code. Remember: changing the core Magento code is not the greatest idea as upgrade of Magento will\u2026","rel":"","context":"In &quot;Magento 2&quot;","block_context":{"text":"Magento 2","link":"http:\/\/bangla.sitestree.com\/?cat=1907"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22702,"url":"http:\/\/bangla.sitestree.com\/?p=22702","url_meta":{"origin":16469,"position":5},"title":"How I changed the Favicon of ShopForSoul.com (Justetc Properties) #Root #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"March 19, 2021","format":false,"excerpt":"Favicon: It is the icon displayed in the browser tab (top-left) when you go to a site. Steps to Change: Took the logo from the site http:\/\/www.justetc.net\/ Used a paint software to cut the text and kept only the pictorial part (logo symbol) of the logo image. Then used the\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/16469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16469"}],"version-history":[{"count":2,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/16469\/revisions"}],"predecessor-version":[{"id":16487,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/16469\/revisions\/16487"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16469"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}