# Migration Checklist Template
## Application: [APPLICATION NAME]

### Pre-Migration
- [ ] Document current directory location
- [ ] Document database name(s) and size
- [ ] Document Apache virtual host configuration
- [ ] Document SSL certificate details
- [ ] Document PHP version and required extensions
- [ ] Document cron jobs
- [ ] Document environment variables/config files
- [ ] Create full backup of application directory
- [ ] Create database backup
- [ ] Document file permissions
- [ ] Test backup restoration (optional but recommended)

### New Server Setup
- [ ] Create directory structure
- [ ] Install required PHP version and extensions
- [ ] Copy application files
- [ ] Create database(s)
- [ ] Import database(s)
- [ ] Update configuration files with new database credentials
- [ ] Update file paths in configuration (if needed)
- [ ] Set proper file permissions
- [ ] Copy/configure Apache virtual host
- [ ] Install/configure SSL certificate
- [ ] Set up cron jobs (if applicable)
- [ ] Configure environment variables

### Testing (Before DNS Cutover)
- [ ] Application loads correctly
- [ ] Database connections work
- [ ] User login/authentication works
- [ ] File uploads work
- [ ] File downloads work
- [ ] Email functionality works
- [ ] SSL certificate valid
- [ ] All critical features tested
- [ ] Performance acceptable
- [ ] Error logs checked

### DNS Cutover
- [ ] Update DNS records to point to new server
- [ ] Wait for DNS propagation
- [ ] Verify domain resolves to new server
- [ ] Monitor for issues
- [ ] Keep old server running for 48-72 hours

### Post-Migration
- [ ] Verify all functionality still works
- [ ] Monitor error logs
- [ ] Update monitoring systems
- [ ] Update backup systems
- [ ] Document new server details
- [ ] Update documentation
- [ ] Notify users (if applicable)

### Cleanup (After 48-72 hours of stable operation)
- [ ] Remove application from old server (after backup)
- [ ] Drop database from old server (after backup)
- [ ] Remove Apache config from old server
- [ ] Update documentation

### Notes
[Add any specific notes, issues encountered, or special considerations]

---

## Migration Log

| Date | Time | Action | Status | Notes |
|------|------|--------|--------|-------|
| | | | | |
| | | | | |
| | | | | |

