How to restore a crashed directadmin server
- Category : Linux Helpline (Easy Guide)
- Posted on : Feb 05, 2019
- Views : 1,910
- By : Kapueo I.
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/
#!/bin/bash cp -avprf /old/etc/passwd /etc/ cp -avprf /old/etc/group /etc/ cp -avprf /old/etc/shadow /etc/ cp -avprf /old/etc/gshadow /etc/ cp -avprf /old/etc/my.cnf /etc/ cp -avprf /old/etc/exim* /etc/ cp -avprf /old/etc/hosts /etc/ cp -avprf /old/etc/httpd/conf/* /etc/httpd/conf/ cp -avprf /old/etc/named.conf /etc/ cp -avprf /old/etc/proftpd.conf /etc/ cp -avprf /old/etc/proftpd.passwd /etc/ cp -avprf /old/etc/proftpd.vhosts.conf /etc/ cp -avprf /old/etc/resolv.conf /etc/ cp -avprf /old/etc/system_filter.exim /etc/ cp -avprf /old/usr/local/directadmin/conf /usr/local/directadmin/ cp -avprf /old/usr/local/directadmin/plugins /usr/local/directadmin/ cp -avprf /old/etc/mail /etc/ cp -avprf /old/etc/virtual /etc/ cp -avprf /old/var/named /var/ cp -avprf /old/var/spool/cron /var/spool/ cp -avprf /old/var/spool/virtual /var/spool/ cp -avprf /old/var/www /var/ cp -avprf /old/usr/local/directadmin/data /usr/local/directadmin/ cp -avprf /old/var/lib/mysql /var/lib/ cp -avprf /old/home/* /home/
3) Now compile apache and php using the directadmin custom build script
4) Test your websites
Categories
- cPanel Question 47
- cPanel Software Management 29
- cPanel Tutorials 13
- Development 29
- Domain 13
- General 19
- Linux Helpline (Easy Guide) 156
- Marketing 47
- MySQL Question 13
- News 2
- PHP Configuration 14
- SEO 4
- SEO 42
- Server Administration 84
- SSL Installation 54
- Tips and Tricks 24
- VPS 3
- Web Hosting 44
- Website Security 22
- WHM questions 13
- WordPress 148
Subscribe Now
10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!Archive Calendar
Sat | Sun | Mon | Tue | Wed | Thu | Fri |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Recent Articles
-
Posted on : Sep 17
-
Posted on : Sep 10
-
Posted on : Aug 04
-
Posted on : Apr 01
Tags
- ts
- myisam
- vpn
- sql
- process
- kill
- tweak
- server load
- attack
- ddos mitigation
- Knowledge
- layer 7
- ddos
- webmail
- DMARC
- Development
- nginx
- seo vpn
- Hosting Security
- wireguard
- innodb
- exim
- smtp relay
- smtp
- VPS Hosting
- cpulimit
- Plesk
- Comparison
- cpu
- encryption
- WHM
- xampp
- sysstat
- optimize
- cheap vpn
- php-fpm
- mariadb
- apache
- Small Business
- Error
- Networking
- VPS
- SSD Hosting
- Link Building
- centos
- DNS
- optimization
- ubuntu