Liran,
We copy frequently epesi instances between the production and development servers and perform exactly operations you describe:
- copy entire epesi installation directory to another server (including data directory)
- dump database from old server
- restore database on new server
- update configuration file - database name, user, password - if you keep them the same on both servers you don't need to update anything
The data directory needs to be empty during clean reinstall only. Data directory contains data - like attachments, e-mails - and needs to be copied as well during the migration process.
If you are getting session errors you are right - they are kept in the database - just empty session tables. However you may want to also empty local browser's cache or at least restart it. Please let us know if this helps.
Note: epesi is designed to work from any directory, virtual directory, host, port. It is beign tested on Windows XP, Vista, 2003 Server, Linux variants, OS X, IIS (Internet Information Server), Apache, several stacks like XAMP or WAMP and few hosting plans - to make sure that it is compatible with all environments. Occasionally we find some unusual setup but those bugs are being resolved as they are reported.