{"id":984,"date":"2014-09-02T14:14:31","date_gmt":"2014-09-02T12:14:31","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/?p=984"},"modified":"2014-09-02T14:14:31","modified_gmt":"2014-09-02T12:14:31","slug":"how-to-restore-a-crashed-directadmin-server","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2014\/09\/02\/how-to-restore-a-crashed-directadmin-server\/","title":{"rendered":"How to restore a crashed directadmin server"},"content":{"rendered":"<p>Please follow the procedure to restore a crashed directadmin server. It is based on Centos.<br \/>\n1) Install direactadmin and configure apache, php, mysql with same version\/settings as in old server<br \/>\n2) Mount the old HDD under \/old . If you have \/home or any other partition in old server , please mount it under \/old\/<\/p>\n<pre class=\"lang:default decode:true \">#!\/bin\/bash\r\ncp -avprf  \/old\/etc\/passwd  \/etc\/\r\ncp -avprf  \/old\/etc\/group \/etc\/\r\ncp -avprf  \/old\/etc\/shadow \/etc\/\r\ncp -avprf  \/old\/etc\/gshadow \/etc\/\r\ncp -avprf  \/old\/etc\/my.cnf \/etc\/\r\ncp -avprf  \/old\/etc\/exim*  \/etc\/\r\ncp -avprf  \/old\/etc\/hosts  \/etc\/\r\ncp -avprf  \/old\/etc\/httpd\/conf\/* \/etc\/httpd\/conf\/\r\ncp -avprf  \/old\/etc\/named.conf \/etc\/\r\ncp -avprf  \/old\/etc\/proftpd.conf \/etc\/\r\ncp -avprf  \/old\/etc\/proftpd.passwd \/etc\/\r\ncp -avprf  \/old\/etc\/proftpd.vhosts.conf \/etc\/\r\ncp -avprf  \/old\/etc\/resolv.conf \/etc\/\r\ncp -avprf  \/old\/etc\/system_filter.exim  \/etc\/\r\n\r\ncp -avprf  \/old\/usr\/local\/directadmin\/conf  \/usr\/local\/directadmin\/\r\ncp -avprf \/old\/usr\/local\/directadmin\/plugins \/usr\/local\/directadmin\/\r\ncp -avprf \/old\/etc\/mail  \/etc\/\r\ncp -avprf \/old\/etc\/virtual \/etc\/\r\ncp -avprf  \/old\/var\/named \/var\/\r\ncp -avprf  \/old\/var\/spool\/cron \/var\/spool\/\r\ncp -avprf  \/old\/var\/spool\/virtual \/var\/spool\/\r\ncp -avprf  \/old\/var\/www \/var\/\r\ncp -avprf  \/old\/usr\/local\/directadmin\/data \/usr\/local\/directadmin\/\r\n\r\ncp -avprf \/old\/var\/lib\/mysql  \/var\/lib\/\r\ncp -avprf \/old\/home\/*  \/home\/\r\n\r\n<\/pre>\n<p>3) Now compile apache and php using the directadmin custom build script<br \/>\n4) Test your websites<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Please follow the procedure to restore a crashed directadmin server. It is based on Centos. 1) Install direactadmin and configure apache, php, mysql with same version\/settings as in old server 2) Mount the old HDD under \/old . If you have \/home or any other partition in old server , please mount it under \/old\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-984","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=984"}],"version-history":[{"count":1,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/984\/revisions"}],"predecessor-version":[{"id":985,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/984\/revisions\/985"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}