{"id":25053,"date":"2021-04-15T23:10:05","date_gmt":"2021-04-16T03:10:05","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/misc-linux-commands-centos-redhat-that-you-might-find-useful-root\/"},"modified":"2021-04-15T23:10:05","modified_gmt":"2021-04-16T03:10:05","slug":"misc-linux-commands-centos-redhat-that-you-might-find-useful-root","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=25053","title":{"rendered":"Misc Linux Commands (CentOS\/Redhat) that you might find useful #Root"},"content":{"rendered":"<p>1 php -v<br \/>\n2 yum repolist<br \/>\n3 yum repolist | remi<br \/>\n4 yum repolist | grep remi<br \/>\n5 yum repolist | grep ius<br \/>\n6 yum makecache<br \/>\n7 yum update<br \/>\n8 reboot<br \/>\n9 adduser ariro<br \/>\n10 passwd ariro<br \/>\n11 usermod -a -G apache ariro<br \/>\n12 adduser magento<br \/>\n13 passwd magento<br \/>\n14 usermod -a -G apache magento<br \/>\n15 mysql<br \/>\n16 mysql -u magento -p magentodb<br \/>\n17 mkdir \/var\/www\/magento<br \/>\n18 exit<br \/>\n21 ls<br \/>\n20 mv Magento-CE-2.3.2-2019-06-13-03-23-52.tar.gz \/var\/www\/magento\/<br \/>\n21 cd \/var\/www\/magento<\/p>\n<p>23 gunzip Magento-archive.tar.gz<br \/>\n24 ls<br \/>\n25 ls -la<br \/>\n26 tar zxvf Magento-CE-2.3.2-2019-06-13-03-23-52.tar.gz<br \/>\n27 chown -R magento:apache \/var\/www\/magento<br \/>\n28 cd \/etc\/httpd\/conf<br \/>\n29 nano httpd.conf<br \/>\n30 apachectl configtest<br \/>\n31 systemctl reload httpd<br \/>\n32 cd \/var\/www\/magento<br \/>\n33 find var vendor pub\/static pub\/media app\/etc -type f -exec chmod g+w {} ;<br \/>\n34 find var vendor pub\/static pub\/media app\/etc -type d -exec chmod g+ws {} ;<br \/>\n35 chmod u+x bin\/magento<br \/>\n36 chown -R magento:apache \/var\/www\/magento<br \/>\n37 apachectl configtest<br \/>\n38 systemctl reload httpd<br \/>\n39 ls -la index.php<br \/>\n40 chmod +x *.php<br \/>\n41 ls -la index.php<br \/>\n42 apachectl status apache<br \/>\n43 apachectl restart apache<br \/>\n44 php bin\/magento setup:install<br \/>\n45 php bin\/magento setup:install &#8211;base-url=sayedum&#8221; &#8211;admin-user=&#8221;magento&#8221; &#8211;admin-password=&#8221;&#8221; &#8211;db-name=&#8221;magento&#8221; &#8211;db-host=&#8221;localhost&#8221; &#8211;db-user=&#8221;magento&#8221; &#8211;currency=USD &#8211;timezone=America\/Chicago &#8211;use-rewrites=1 &#8211;db-password=&#8221;-&#8221;<br \/>\n46 yum install php-intl<br \/>\n47 php bin\/magento setup:install<br \/>\n48 php bin\/magento setup:install &#8211;base-url=sayedum&#8221; &#8211;admin-user=&#8221;magento&#8221; &#8211;admin-password=&#8221;&#8221; &#8211;db-name=&#8221;magento&#8221; &#8211;db-host=&#8221;localhost&#8221; &#8211;db-user=&#8221;magento&#8221; &#8211;currency=USD &#8211;timezone=America\/Chicago &#8211;use-rewrites=1 &#8211;db-password=&#8221;-&#8221;<br \/>\n49 yum install php72-intl<br \/>\n50 ls -la<br \/>\n51 ls -la index*<br \/>\n52 vi \/etc\/httpd\/conf\/httpd.conf<br \/>\n53 apachectl restart apache<br \/>\n54 ls \/var\/www\/magento\/<br \/>\n55 vi \/etc\/httpd\/conf\/httpd.conf<br \/>\n56 apachectl restart apache<br \/>\n57 apachectl restart jttpd<br \/>\n58 apachectl restart httpd<br \/>\n59 systemctl reload httpd<br \/>\n60 systemctl restart httpd<br \/>\n61 reboot<\/p>\n<p>62 cp -R \/var\/www\/magento\/* \/var\/www\/html\/<br \/>\n63 systemctl restart httpd<br \/>\n64 systemctl reload httpd<br \/>\n65 cd \/var\/www\/html\/<br \/>\n66 ls index.php<br \/>\n67 ls -la index.php<br \/>\n68 chmod +x *.php<br \/>\n69 ls cd \/var\/www\/magento<br \/>\n70 find var vendor pub\/static pub\/media app\/etc -type f -exec chmod g+w {} ;<br \/>\n71 find var vendor pub\/static pub\/media app\/etc -type d -exec chmod g+ws {} ;<br \/>\n72 chmod u+x bin\/magento<br \/>\n73 cd \/var\/www\/html\/<br \/>\n74 find var vendor pub\/static pub\/media app\/etc -type f -exec chmod g+w {} ;<br \/>\n75 cat \/etc\/httpd\/conf.d\/http.conf<br \/>\n76 cp \/etc\/httpd\/conf.d\/http.conf \/etc\/httpd\/conf.d\/http.conf.var.www.html<br \/>\n77 vi \/etc\/httpd\/conf.d\/http.conf<br \/>\n78 vi \/var\/default-conf\/httpd\/conf.d<br \/>\n79 vi \/var\/default-conf\/httpd\/conf\/httpd.conf<br \/>\n80 history<br \/>\n81 history &gt; history.txt From: http:\/\/sitestree.com\/misc-linux-commands-centos-redhat-that-you-might-find-useful\/<br \/> Categories:Root<br \/>Tags:<br \/> Post Data:2019-06-29 11:37:33<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 php -v 2 yum repolist 3 yum repolist | remi 4 yum repolist | grep remi 5 yum repolist | grep ius 6 yum makecache 7 yum update 8 reboot 9 adduser ariro 10 passwd ariro 11 usermod -a -G apache ariro 12 adduser magento 13 passwd magento 14 usermod -a -G apache magento &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=25053\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-25053","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":14842,"url":"http:\/\/bangla.sitestree.com\/?p=14842","url_meta":{"origin":25053,"position":0},"title":"Misc Linux Commands (CentOS\/Redhat) that you might find useful","author":"Sayed","date":"June 28, 2019","format":false,"excerpt":"1 php -v 2 yum repolist 3 yum repolist | remi 4 yum repolist | grep remi 5 yum repolist | grep ius 6 yum makecache 7 yum update 8 reboot 9 adduser ariro 10 passwd ariro 11 usermod -a -G apache ariro 12 adduser magento 13 passwd magento 14\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":14846,"url":"http:\/\/bangla.sitestree.com\/?p=14846","url_meta":{"origin":25053,"position":1},"title":"Learn some CentOS Linux : Redhat Linux","author":"Sayed","date":"June 29, 2019","format":false,"excerpt":"This is mostly about Centos Linux. However, this also shows commands related to how to install Magento 2 on LEMP (E for Nginx Web-server). Some PHP related stuff are there as well. LEMP + CentOS + Magento 2 : VM Image or one click install: I did not see readily\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":25055,"url":"http:\/\/bangla.sitestree.com\/?p=25055","url_meta":{"origin":25053,"position":2},"title":"Learn and practice some CentOS Linux : Redhat Linux #Root","author":"Author-Check- Article-or-Video","date":"April 15, 2021","format":false,"excerpt":"This is mostly about Centos Linux. However, this also shows commands related to how to install Magento 2 on LEMP (E for Nginx Web-server). Some PHP related stuff are there as well. Let's Encrypt included. LEMP + CentOS + Magento 2 : VM Image or one click install: I did\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":15984,"url":"http:\/\/bangla.sitestree.com\/?p=15984","url_meta":{"origin":25053,"position":3},"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":25053,"position":4},"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":16439,"url":"http:\/\/bangla.sitestree.com\/?p=16439","url_meta":{"origin":25053,"position":5},"title":"Mysql error after upgrading magento 2.3.2 to 2.3.3","author":"Sayed","date":"November 30, 2019","format":false,"excerpt":"Solution to: SQLSTATE[HY000]: General error: 1419 You do not have the SUPER privilege and binary logging is enabled (you might want to use the less safe log_bin_trust_function_creators variable), query was: CREATE TRIGGER trg_catalog_product_entity_after_insert AFTER INSERT ON catalog_product_entity FOR EACH ROW BEGIN INSERT IGNORE INTO `scconnector_google_feed_cl` (`entity_id`) VALUES (NEW.`entity_id`); END Sol:\u2026","rel":"","context":"In &quot;AI ML DS RL DL NN NLP Data Mining Optimization&quot;","block_context":{"text":"AI ML DS RL DL NN NLP Data Mining Optimization","link":"http:\/\/bangla.sitestree.com\/?cat=1910"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/25053","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\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25053"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/25053\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25053"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}