I just went through the process of moving my expression engine local install from my mac to my pc in order to test it in a windows environment. Just want to the share process so it can go easier for others:
Part I
1. Export your EE database to a text file using phpMyAdmin. I installed MAMP in my applications folder on my mac, so my url looks like:
<a href="http://localhost/MAMP/">http://localhost/MAMP/</a>Click on phpMyAdmin on the top of the MAMP page, then select your EE database. From the menu tabs select “Export”. Make sure all of the SQL database tables are in the box, select all, and then save as file using compression if you want. Save the file to your desktop. It will appear as:
name_of_your_database.sql.2. Duplicate your EE folder containing all your files and folders for your site. On my mac, I installed my folder in the my Sites folder as:
/Users/username/Sites/expressionengine.devSave the folder to your desktop. Rename it if need be to remove the word “copy” from the folder name. Move the database sql file into your EE directory.
3. Transfer that folder to your PC. Have it sitting on your desktop.
4. Download XAMPP or XAMPPLITE per instructions on Apache Friends site. Install using the installer or without the installer. I personally did not use the installer method and just extracted the contents of the zipped folder to my applications folder:
C:\Program Files (x86)\xampplite*Note that I am using XP64bit, therefore I have two application folders, one for 32bit applications and the other for 64bit. If you are on a 32bit system it would be:
C:\Program Files\xamppliteIf you installed using the zipped folder method you would need to locate the application file in the xampplite folder and manually turn on XAMPP:
Find the setup_xammp.bat file and double-click to run. Then find the xampp-control.exe, double-click to run, and turn on Apache and MySql using the XAMPP control panel. Note that I right-click on the executable for the control panel and “Pin to Start Menu.”
Go to the URI:
<a href="http://localhost">http://localhost</a>and click on english for language if applicable. From there go to Security and properly secure your installation by assigning passwords to root, etc. Then go to phpMyAdmin and set yourself up as a new user with full privileges and assign your user account a password. Next create the EE database as usual.
5. Make sure you have “Hide extensions for known filetypes” unchecked. My Computer > Tools > Folder Options.
6. Move the EE folder on your desktop to the following directory:
C:\Program Files\xammplite\htdocsMy folder path now reads:
C:\Program Files\xammplite\htdocs\expressionengine.devYou will name your folder according to your site name.
In theory your website now should exist at the following URI:
<a href="http://localhost/name_of_your_site_folder">http://localhost/name_of_your_site_folder</a>But, there is work to do.
7. Go to the following directory:
C:\WINDOWS\System32\drivers\etc\hostsOpen the file using a text editor. There will be a line with the following:
127.0.0.1 localhostChange that line of text by adding the name of your site folder at the end, so it now reads:
127.0.0.1 localhost name_of_your_site_folderIn my case it is:
127.0.0.1 localhost expressionengine.dev8. Next go to the following directory:
C:\Program Files\xampplite\apache\conf\extra\httpd-vhosts.confOpen the file and replace lines 19-42 with:
NameVirtualHost localhost:80
<VirtualHost localhost>
DocumentRoot "C:/Program Files/xampplite/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost name_of_your_site_folder>
DocumentRoot "C:/Program Files/xampplite/htdocs/name_of_your_site_folder"
ServerName name_of_your_site_folder
</VirtualHost>*Change ‘name_of_your_site_folder’ with the real folder name.
9. Make sure mod_rewrite is “on.” This is the default setting for XAMPP installations. But, do check the httpd file at:
C:\Program Files\xampplite\apache\conf\httpd.confThe mod_rewrite rule should be located at line 118-120.
10. Restart Apache.