Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

Here's my situation. I have followed the exact instructions on the WordPress codex page about moving a site to another server. Here are the steps I have taken.

  1. Export a copy of my database

  2. Make a new database in the new server

  3. Import the database I exported earlier

  4. Upload a copy of my Wordpress files via Ftp

  5. Use this script to change all my local URLs to new ones

  6. Make changes to my wp-config.php file according to the new server(I did not forgettably prefix. Although it has some uppercase characters in it )

And then when I try to open my site on the new location it just directs me to wp-admin/install.php Now just to make the scenario clearer: The destination folder(on live server) is a subdirectory in a public_html folder which already has another WordPress install inside it(I'm saying this just in case it should matter)

My .htaccess looks like this

# BEGIN WordPress 

<IfModule mod_rewrite.c> 

RewriteEngine On 

RewriteBase /subDirectoryName/ 

RewriteRule ^index\.php$ - [L] 

RewriteCond %{REQUEST_FILENAME} !-f 

RewriteCond %{REQUEST_FILENAME} !-d 

RewriteRule . /subDirectoryName/index.php [L]

</IfModule> 

# END WordPress

I have tried checking and repairing my tables via phpMyadmin but everything seems to be ok there and has no effect on the problem.

I also tried emptying the database on the live server and go through with the install. And it installs with no problems and everything works fine but, well I have no use for another clean install. But I think this at least rules out any trouble with wp-config file. I'm using Wordpress Version 3.3.1

So I guess the big question I'm left with is: Why isn't WordPress recognizing my Install after migration?

Any help much appreciated!

1 Answer

0 votes
by (106k points)

You can fix the problem by changing the following settings to be correct:

define('DB_NAME', 'HikeforLife_dev11'); 

define('DB_USER', 'HikeforLife_dev11'); 

$table_prefix = 'wphk_';

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Aug 6, 2019 in Web Technology by Sammy (47.6k points)
+1 vote
1 answer

Browse Categories

...