{"id":149,"date":"2019-05-13T11:15:09","date_gmt":"2019-05-13T11:15:09","guid":{"rendered":"https:\/\/blog.iabsolute.com\/?p=149"},"modified":"2019-05-13T11:15:09","modified_gmt":"2019-05-13T18:15:09","slug":"ubuntu-command-line-for-apache-2","status":"publish","type":"post","link":"https:\/\/blog.iabsolute.com\/?p=149","title":{"rendered":"ubuntu command line for apache"},"content":{"rendered":"\n<p>Update your system:<br>\nsudo apt-get update &amp;&amp; sudo apt-get upgrade\n=-=-=-=-=-=-=-=-=-=-=-<br>\nremove LAMP<br>\nsudo apt-get purge mysql-server apache2 php5\n==-=-=-=-=-=-=-=-=-=-=-<br>\nfully manage your lamp Server database, install phpmyadmin<br>\nsudo&nbsp; apt-get&nbsp; install&nbsp; phpmyadmin\n=-=-=-=-=-=-=-=-=-=-=-=<br>\nInstall Apache<br>\nsudo apt-get install apache2 apache2-doc apache2-utils\n=-=-=-=-=-=-=-=-=-=-=-=-=-<br>\nEdit the main Apache configuration file and turn off the KeepAlive setting:<br>\n\/etc\/apache2\/apache2.conf\nKeepAlive Off\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br>\nuseradd<br>\nuseradd -c \u201cDamon Luong\u201d damon\n=-=-=-=-=-=-=-=-=-=-=-=-=-=<br>\nusermod<br>\nusermod -c \u201cdamon\u201d damon\n=-=-=-=-=-=-=-=-=-=-=-=-=-<br>\nadd user to the www-data group<br>\nsudo useradd -g www-data damon\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\n=-=-=-=-=-=-=-=-<br>\nAdd a existing user to www-data group<br>\nsudo usermod -a -G www-data&nbsp; linda<br>\nid linda<br>\ngroups linda\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&nbsp; apt-get&nbsp; install&nbsp; phpmyadmin =-=-=-=-=-=-=-=-=-=-=-= Install Apache sudo apt-get install apache2 apache2-doc &hellip; <a href=\"https:\/\/blog.iabsolute.com\/?p=149\">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":[3],"tags":[],"class_list":["post-149","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/149","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=149"}],"version-history":[{"count":1,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/149\/revisions"}],"predecessor-version":[{"id":150,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/149\/revisions\/150"}],"wp:attachment":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}