Qmail restore at NIIT: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
1 Stop Qmail serive. | 1 Stop Qmail serive. | ||
qmailctl stop | |||
2. Copy backup of qmail and ldap to the server where we want to restore. | 2. Copy backup of qmail and ldap to the server where we want to restore. | ||
| Line 17: | Line 17: | ||
4. Give vmail permission to vmail. | 4. Give vmail permission to vmail. | ||
chown -r vmail:vmail /home/vmail | |||
5. start qmail servie. | 5. start qmail servie. | ||
qmailctl Start | |||
6. Stop Ldap servie | 6. Stop Ldap servie | ||
/etc/init.d/ldap stop | |||
7. delete old ldap file. | 7. delete old ldap file. | ||
rm -rf /var/lib/ldap/* | |||
8. Put ldap backup to /var/lib/ldap/ | 8. Put ldap backup to /var/lib/ldap/ | ||
9. Give Ldap permission 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 | 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 | memory_limit = 256M ; Maximum amount of memory a script may consume | ||
Latest revision as of 13:30, 17 June 2017
Objective[edit]
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