{"id":392,"date":"2018-09-16T14:43:19","date_gmt":"2018-09-16T14:43:19","guid":{"rendered":"http:\/\/kloxo.web.id\/?p=392"},"modified":"2018-09-16T14:43:19","modified_gmt":"2018-09-16T14:43:19","slug":"persiapan-implementasi-spse-4-3-upgrade-httpd-ke-2-4","status":"publish","type":"post","link":"https:\/\/kloxo.web.id\/?p=392","title":{"rendered":"Persiapan Implementasi SPSE 4.3 (Upgrade HTTPD ke 2.4)"},"content":{"rendered":"<p>Sesuai janji saya di tuts <a href=\"http:\/\/kloxo.web.id\/?p=383\" target=\"_blank\" rel=\"noopener\">Persiapan Implementasi SPSE 4.3 (Upgrade Database ke Postgresql 10)<\/a> untuk menuliskan tuts upgrade httpd 2.2 ke 2.4 terutama pada OS Centos 6.9 x64.<\/p>\n<p>Persiapan awal, dengan data teknis saat ini sebagai berikut :<br \/>\na. OS = Centos 6.9 x64<br \/>\nb. Database = Postgresql 10 (sudah diupgrade dari 9.5)<br \/>\nc. Web = Apache 2.2<\/p>\n<p>Langkah-langkah yang dilakukan sebagai berikut :<br \/>\n1. Cek httpd yang running\/terinstal saat ini :<br \/>\n[root@localhost ~]# rpm -qa | grep httpd<br \/>\nhttpd-2.2.15-69.el6.centos.x86_64<br \/>\nhttpd-devel-2.2.15-69.el6.centos.x86_64<br \/>\nhttpd-tools-2.2.15-69.el6.centos.x86_64<br \/>\n2. Matikan service httpd 2.2 :<br \/>\nservice httpd stop<br \/>\nchkconfig httpd off<br \/>\n3. Backup konfigurasi httpd 2.2 yang saat ini :<br \/>\ncp -a \/etc\/httpd \/etc\/httpd.bak<br \/>\n4. Ubah konfigurasi yum.conf agar membersihkan sisa-sisa dependencies yang tidak digunakan<br \/>\nnano \/etc\/yum.conf, tambahkan baris &#8220;clean_requirements_on_remove=1&#8243;<\/p>\n<p>Pada proses upgrade ini saya menggunakan repository dari Software Collections (SCL).<\/p>\n<p>5. Hapus httpd 2.2, instal scl repo dan httpd 2.4 :<br \/>\nyum remove httpd<br \/>\nyum install centos-release-scl<br \/>\nyum &#8211;disablerepo=&#8221;*&#8221; &#8211;enablerepo=&#8221;centos-sclo-rh&#8221; list available httpd24\\*<br \/>\nyum &#8211;enablerepo=centos-sclo-rh -y install httpd24<\/p>\n<p>All configuration files will be located in \/opt\/rh\/httpd24\/root\/etc\/httpd\/<\/p>\n<p>6. Aktifkan httpd 2.4, dan cek versi saat ini :<br \/>\nscl enable httpd24 bash<br \/>\nwhich httpd<br \/>\nhttpd -V<\/p>\n<p>7. Salin konfigurasi spse dari httpd 2.2 ke 2.4<br \/>\nnano \/opt\/rh\/httpd24\/root\/etc\/httpd\/conf.d\/spse.conf<br \/>\ncopy &#8211; paste baris yang dimulai dari :<\/p>\n<p>&#8212; awal baris<br \/>\nAlias \/file_latihan \/home\/file\/file_latihan<br \/>\nAlias \/file_prod \/home\/file\/file_prod<br \/>\n&#8230;<br \/>\n#SecRule RESPONSE_STATUS &#8220;@streq 408&#8221; &#8220;phase:5,t:none,nolog,pass,setvar:ip.slow_dos_counter=+1,expirevar:ip.slow_dos_counter=60&#8221;<br \/>\n#SecRule IP:SLOW_DOS_COUNTER &#8220;@gt 25&#8221; &#8220;phase:1,t:none,log,drop,msg:&#8217;Client Connection Dropped due to high # of slow DoS alerts'&#8221;<br \/>\n&#8212; akhir baris<\/p>\n<p>7. Jalankan service otomatis ketika boot :<br \/>\nchkconfig httpd24-httpd on<br \/>\nservice httpd24-httpd start<\/p>\n<p>Selamat Mencoba..DWYOR<\/p>\n<p>(https:\/\/stackoverflow.com\/questions\/9545450\/upgrade-apache-2-2-2-4, https:\/\/community.rackspace.com\/general\/f\/general-discussion-forum\/8013\/upgrading-apache-2-2-to-2-4-in-rhel-6-7-and-centos-6-7, https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-set-up-and-use-yum-repositories-on-a-centos-6-vps)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sesuai janji saya di tuts Persiapan Implementasi SPSE 4.3 (Upgrade Database ke Postgresql 10) untuk menuliskan tuts upgrade httpd 2.2 ke 2.4 terutama pada OS Centos 6.9 x64. Persiapan awal, dengan data teknis saat ini sebagai berikut : a. OS = Centos 6.9 x64 b. Database = Postgresql 10 (sudah diupgrade dari 9.5) c. Web [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5,1],"tags":[],"class_list":["post-392","post","type-post","status-publish","format-standard","hentry","category-linux-server","category-spse","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=392"}],"version-history":[{"count":3,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions"}],"predecessor-version":[{"id":402,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions\/402"}],"wp:attachment":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}