I have developed my WordPress website locally using MAMP on a Mac. I now would like to transfer the site to a Windows 7 computer where I have installed WAMPServer (to continue to be developed locally).
This is what I have tried:
- Exported the wordpress database to a .sql file using phpAdmin
- Made a copy of my entire WordPress installation (named wordpressFiles, located in the htdocs file that was installed by default with mamp)
- Imported the wordpress to the new computer using phpAdmin
- Copied the wordpress installation files into the www folder created by default with WAMP Server (named wordpressFiles)
- Using phpAdmin, under wp_options I have changed my siteurl and home from http://localhost:8888/wordpressfiles to http://localhost/wordpressfiles
- I have enabled the Apache rewrite_module and restarted servers
- Using a text editor I added the following lines and changed the third to:
- define(‘WP_HOME’, ‘http://localhost/wordpress‘);
- define(‘WP_SITEURL’,’http://localhost/wordpress‘);
- define(‘DB_HOST’, ‘127.0.0.1’);
After starting all WampServer services, and opening phpAdmin, I see my wordpress folder under Projects. When clicking on it, however, I get an HTTP 500 internal error message.
In wp-config.php, the MySQL settings are defined as such (I’m wondering if something is wrong here):
define('DB_NAME', 'wordpress');
define('DB_USER', 'root');
define('DB_PASSWORD', 'root');
define('DB_HOST', 'localhost');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
In phpAdmin on my mac, the server name is localhost while on my Windows machine, the server name is mysql wampserver. Perhaps this is an issue? If it is, nor changing to define(‘DB_HOST’, ‘mysql wampserver’) nor define(‘DB_HOST’, ‘127.0.0.1’) nor define(‘DB_HOST’, ‘127.0.0.1 via TCP/IP’) fixed the issue.
Other thoughts: does this have anything to do with the .htaccess file? Some forums and posts have told me to remove this temporarily, but it turns out I don’t have an .htaccess file in my www root folder.
You can delete your .htacess file without any worries, this will regenerate itself when you change your permalink settings.
When you change your database settings be sure to change everything, as their may be plugins or theme dependant on certain paths being correct.
So instead of just changing it in your phpMyadmin, run the following query:
Where localhost:8888/paperfreeweb is the old url and weloveweb.co.za/paperfreeweb is the new url.
If this does not work, rename your plugins directory to plugins1 and create an empty plugin directory, this is to check if it might be plugins which are the issue and also move your theme folder out of the themes directory so that it defaults to the wordpress theme, to check if the theme is your issue.