{"id":119,"date":"2019-05-09T22:06:43","date_gmt":"2019-05-09T22:06:43","guid":{"rendered":"https:\/\/blog.iabsolute.com\/?p=119"},"modified":"2019-05-09T22:06:43","modified_gmt":"2019-05-10T05:06:43","slug":"ubuntu-command-line-for-apache","status":"publish","type":"post","link":"https:\/\/blog.iabsolute.com\/?p=119","title":{"rendered":"ubuntu command line for apache"},"content":{"rendered":"<p>Update your system:<br \/>\nsudo apt-get update &amp;&amp; sudo apt-get upgrade<br \/>\n=-=-=-=-=-=-=-=-=-=-=-<br \/>\nremove LAMP<br \/>\nsudo apt-get purge mysql-server apache2 php5<br \/>\n==-=-=-=-=-=-=-=-=-=-=-<br \/>\nfully manage your lamp Server database, install phpmyadmin<br \/>\nsudo  apt-get  install  phpmyadmin<br \/>\n=-=-=-=-=-=-=-=-=-=-=-=<br \/>\nInstall Apache<br \/>\nsudo apt-get install apache2 apache2-doc apache2-utils<br \/>\n=-=-=-=-=-=-=-=-=-=-=-=-=-<br \/>\nEdit the main Apache configuration file and turn off the KeepAlive setting:<br \/>\n\/etc\/apache2\/apache2.conf<br \/>\nKeepAlive Off<br \/>\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br \/>\nuseradd<br \/>\nuseradd -c \u201cDamon Luong\u201d damon<br \/>\n=-=-=-=-=-=-=-=-=-=-=-=-=-=<br \/>\nusermod<br \/>\nusermod -c \u201cdamon\u201d damon<br \/>\n=-=-=-=-=-=-=-=-=-=-=-=-=-<br \/>\nadd user to the www-data group<br \/>\nsudo useradd -g www-data damon<br \/>\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=<br \/>\nadd a new user called vivek to supplementary groups called www-data and ftp,<br \/>\nsudo groupadd roy<br \/>\nsudo useradd -g roy -G www-data,ftp roy<br \/>\n=-=-=-=-=-=-=-=-<br \/>\nAdd a existing user to www-data group<br \/>\nsudo usermod -a -G www-data  linda<br \/>\nid linda<br \/>\ngroups linda<br \/>\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=<br \/>\nAdd myself to the www-data:<br \/>\nsudo usermod -a -G www-data [myusername]<br \/>\n\u2026\u2026.<br \/>\nThen, recursively grant group write permissions to the \/var\/www\/html directory:<br \/>\nsudo chmod -R g+w \/var\/www\/html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update your system: sudo apt-get update &amp;&amp; sudo apt-get upgrade =-=-=-=-=-=-=-=-=-=-=- remove LAMP sudo apt-get purge mysql-server apache2 php5 ==-=-=-=-=-=-=-=-=-=-=- fully manage your lamp Server database, install phpmyadmin sudo apt-get install phpmyadmin =-=-=-=-=-=-=-=-=-=-=-= Install Apache sudo apt-get install apache2 apache2-doc &hellip; <a href=\"https:\/\/blog.iabsolute.com\/?p=119\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,3],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-command-line-my-linux","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=119"}],"version-history":[{"count":1,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":120,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions\/120"}],"wp:attachment":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}