Qmail restore at NIIT
Appearance
Objective
Qmail and Ldap beckup restore on NIIT
1 Stop Qmail serive.
Qmailctl stop
2. Copy backup of qmail and ldap to the server where we want to restore.
3. move the current vmail file to new org_17062017. And put backup vmail file to /home.
4. Give vmail permission to vmail.
Chown -r vmail:vmail /home/vmail
5. start qmail servie.
qmailctl Start
6. Stop Ldap servie
/etc/init.d/ldap stop
7. delete old ldap file.
rm -rf /var/lib/ldap/*
8. Put ldap backup to /var/lib/ldap/
9. Give Ldap permission to /var/lib/ldap.
chown -r Ldap:Ldap /var/lib/Ldap
10. change memory size in /etc/php.ini from 125 to 256MB
vi /etc/php.ini
memory_limit = 256M ; Maximum amount of memory a script may consume
11. start ldap service
/etc/init.d/ldap start
12. Restart httpd service.
/etc/ini.d/httpd restart