Transfer Data To New Domain & Changing Hosting
Use this guide when moving RetailMan ERP System to a new domain, new subdomain, or different hosting/server.
Backup
Before starting any migration, take a complete backup.
Recommended backup items:
- Database export
- Full application codebase
-
public/uploadsfolder -
.envfile - Any custom translation files or modified files
You can use the application backup feature if it is available, or create backups manually from your hosting panel, SSH, phpMyAdmin, database tool, or server control panel.
Transferring To A New Domain
Use this when the hosting/server stays the same, but the domain changes.
Example:
- Old domain:
example1.com - New domain:
example2.com
Steps:
- Point the new domain or subdomain to the existing application codebase.
- Confirm the new domain opens the correct server directory.
- Open the
.envfile. - Change
APP_URLto the new domain.
Example:
APP_URL=https://example2.com
- Save the
.envfile. - Clear application cache if needed.
- Open the new domain in your browser and test login, dashboard, uploads, invoices, and receipts.
Changing Hosting Or Moving To A Different Server
Use this when moving from one hosting/server to another.
Move The Codebase
- Zip or archive the existing RetailMan ERP System codebase from the old hosting.
- Upload the archive to the new hosting/server.
- Extract it in the correct document root.
- Confirm file and folder permissions are correct.
Move The Database
- Export the database from the old hosting/server.
- Create a new database on the new hosting/server.
- Create or assign a database user.
- Import the database backup into the new database.
- Give the database user the required privileges.
Update Configuration
- Point the domain to the new hosting/server by updating DNS or nameservers.
- Open the
.envfile on the new hosting/server. - Update database values:
DB_HOST=your_database_host
DB_DATABASE=your_database_name
DB_USERNAME=your_database_user
DB_PASSWORD=your_database_password
- Update
APP_URLif the domain or URL changed. - Save the
.envfile. - Clear application cache if needed.
- Test the migrated application.
Migration Checklist
After migration, verify:
- Login works.
- Dashboard loads.
- Existing products, contacts, sales, and purchases are visible.
- Uploaded images/files load correctly.
- Invoice and receipt printing works.
- Email settings still work, if configured.
- Scheduled jobs/cron jobs are configured on the new server, if used.
- HTTPS/SSL is active on the new domain.
Frequently Asked Questions
Q: Can I use the same license after migrating to new hosting?
A: In most cases, yes. If license verification fails after migration, confirm the license terms, domain settings, and server connectivity.
Q: Can I use a new domain name?
A: Yes. Update APP_URL in the .env file and make sure the new domain points to the correct application directory.