{"id":23379,"date":"2021-03-30T16:51:45","date_gmt":"2021-03-30T20:51:45","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/aws-misc-stuff-root-by-sayed-ahmed\/"},"modified":"2021-03-30T16:51:45","modified_gmt":"2021-03-30T20:51:45","slug":"aws-misc-stuff-root-by-sayed-ahmed","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=23379","title":{"rendered":"AWS Misc Stuff #Root #By Sayed Ahmed"},"content":{"rendered":"<p>To install more software in Amazon Linux Instance<\/p>\n<p>After you create an instance based on Amazon Linux, you can use the Linux commands as provided in the URL to install more tools for your development.<\/p>\n<p>Actually, the commands are for Fedora Linux<br \/>\nhttp:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/install-LAMP.html<\/p>\n<p>The steps work like charm. One note though, when installing pecl to help installing PhpMyAdmin, try the sudo yum install -y phpMyAdmin couple of times (happened with me, a mirror was difficult to find)<\/p>\n<p>The Raw Commands that I executed &#8211; just showing from .bash_history file<\/p>\n<p>df<br \/>\nexit<br \/>\nsudo yum update -y<br \/>\nsudo yum install -y httpd24 php56 mysql55-server php56-mysqlnd<br \/>\nsudo service httpd start<br \/>\nsudo chkconfig httpd on<br \/>\nchkconfig &#8211;list httpd<br \/>\nls -l \/var\/www<br \/>\nsudo groupadd www<br \/>\nsudo usermod -a -G www ec2-user<br \/>\nexit<br \/>\ngroups<br \/>\nsudo chown -R root:www \/var\/www<br \/>\nsudo chmod 2775 \/var\/www<br \/>\nfind \/var\/www -type d -exec sudo chmod 2775 {} ;<br \/>\nfind \/var\/www -type f -exec sudo chmod 0664 {} ;<br \/>\necho &#8220;&#8221; &gt; \/var\/www\/html\/phpinfo.php<br \/>\nls \/var\/www\/html\/phpinfo.php<br \/>\nping c2-54-172-171-56.compute-1.amazonaws.com<br \/>\nservice httpd start<br \/>\nsudo service httpd start<br \/>\nsudo service httpd restart<br \/>\nsudo yum list installed httpd24 php56 mysql55-server php56-mysqlnd<br \/>\nrm \/var\/www\/html\/phpinfo.php<br \/>\nsudo service mysqld start<br \/>\nsudo mysql_secure_installation<br \/>\nsudo service mysqld stop<br \/>\nsudo chkconfig mysqld on<br \/>\nsudo yum-config-manager &#8211;enable epel<br \/>\nsudo yum install -y phpMyAdmin<br \/>\nsudo yum update -y<br \/>\nsudo yum install -y phpMyAdmin<br \/>\nsudo sed -i -e &#8216;s\/127.0.0.1\/69.193.161.69\/g&#8217; \/etc\/httpd\/conf.d\/phpMyAdmin.conf<br \/>\nsudo service httpd restart<br \/>\nsudo service mysqld restart<br \/>\nsudo service mysqld status<br \/>\nnano .bash_history<\/p>\n<p> From: http:\/\/sitestree.com\/?p=4478<br \/> Categories:Root, By Sayed Ahmed<br \/>Tags:<br \/> Post Data:2016-11-05 23:44:34<\/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>To install more software in Amazon Linux Instance After you create an instance based on Amazon Linux, you can use the Linux commands as provided in the URL to install more tools for your development. Actually, the commands are for Fedora Linux http:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/install-LAMP.html The steps work like charm. One note though, when installing pecl to &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=23379\">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-23379","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":78097,"url":"http:\/\/bangla.sitestree.com\/?p=78097","url_meta":{"origin":23379,"position":0},"title":"How to install phpMyAdmin on Linux (AlmaLinux )","author":"Sayed","date":"May 4, 2025","format":false,"excerpt":"How to install phpMyAdmin on Linux (AlmaLinux - CentOs commands will work) dnf install https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-8.noarch.rpm dnf install https:\/\/rpms.remirepo.net\/enterprise\/remi-release-8.rpm dnf --enablerepo=remi install phpMyAdmin nano \/etc\/httpd\/conf.d\/phpMyAdmin.conf sudo httpd -t systemctl restart httpd Accesss: http:\/\/your-server-ip\/phpMyAdmin Ref: https:\/\/www.liquidweb.com\/help-docs\/how-to-install-phpmyadmin-on-linux-almalinux\/ Commands from this URL worked. In my case, I only executed the above commands.","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":14846,"url":"http:\/\/bangla.sitestree.com\/?p=14846","url_meta":{"origin":23379,"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":23379,"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":21831,"url":"http:\/\/bangla.sitestree.com\/?p=21831","url_meta":{"origin":23379,"position":3},"title":"Some Ubuntu Linux Commands used in AWS platform #Unix\/Linux #RHCSA","author":"Author-Check- Article-or-Video","date":"March 7, 2021","format":false,"excerpt":"Some Ubuntu Linux Commands used in AWS platform Some might be run by the parent commands This is kinda cleaned up from .bash_history (removed repeating and sensitive commands), still not perfectly cleaned up - so you will see lots of ls, cd, dir or similar \u00a0 sudo apt-get update sudo\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":23319,"url":"http:\/\/bangla.sitestree.com\/?p=23319","url_meta":{"origin":23379,"position":4},"title":"EC2 : AWS : Misc #Root #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"March 29, 2021","format":false,"excerpt":"Install Git: EC2 with Amazon Linux sudo yum install git Change Folder Owner sudo chown -R apache:apache folder If Ubuntu in EC2 Instance, Install Git sudo apt-get install git From: http:\/\/sitestree.com\/?p=4452 Categories:Root, By Sayed AhmedTags: Post Data:2016-11-03 23:18:22 Shop Online: https:\/\/www.ShopForSoul.com\/ (Big Data, Cloud, Security, Machine Learning): Courses: http:\/\/Training.SitesTree.com In\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":22421,"url":"http:\/\/bangla.sitestree.com\/?p=22421","url_meta":{"origin":23379,"position":5},"title":"Linux Commands Used: AWS or not #Root #By Sayed Ahmed #RHCSA","author":"Author-Check- Article-or-Video","date":"March 14, 2021","format":false,"excerpt":"Remove MySQL Completely: sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-5.5 mysql-client-core-5.5 sudo rm -rf \/etc\/mysql \/var\/lib\/mysql sudo apt-get autoremove sudo apt-get autoclean Did not try but might work as well [ sudo apt-get remove --purge mysql-server mysql-client mysql-common sudo apt-get autoremove sudo apt-get autoclean sudo rm -rf \/var\/lib\/mysql sudo rm\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\/23379","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=23379"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/23379\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23379"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}