I recently moved my blog from my development server to a hosted service. Everything has gone smoothly except that when I try and access the site I keep getting a re-direct to the install.php page. I don't want to set up a new site...I want to see my old one!
Steps taken...
1) Copied files from my old server to the new host
2) Edited the config.php file to reflect the new MySQL host
3) Exported the MySQL data and changed any relevant directory paths
4) Imported that into my new database
My guess is there is something wrong with the SQL data but I'm not sure where to start looking. Any guesses as to what might be amiss?
Thanks,
-eric-
If you are sure that the changes you made in config.php are correct, then my guess would be that you still have something in your database that is pointing to your old site/address. You may want to search your database dump to ensure all references to your old url has been changed.
wp-config.php is definitely correct. I've scoured the SQL code and all references to the previous document paths have been changed to reflect the new path...eg:
/Library/WebServer/Documents/wordpress
to...
/domains/mydomain.com/html
Also changed some of the URL's to reflect the port change...eg:
mydomain.com:8889
to...
mydomain.com
In what instances would the install.php script keep getting triggered? The database connection is fine, so it must be the content. But where to look?
In my expereince that happens when it's not recognizing the database or the existance of the config.php file you created. What happens if you create a new database and go through the install process? It may be worth a try and then compare the contents of the config.php it creates with the one you created.
Well...low and behold there was something missing in the config.php file. The line that defines the table prefix was missing:
$table_prefix = 'wp_'; // Only numbers, letters, and underscores please!
I wouldn't have seen this if I hadn't followed your advice. So thanks!
:)