Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress keeps redirecting to install-php after migration

Here's my situation. I have followed the exact instructions on wordpress codex page about moving a site to another server. Here are the step's 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 url's to new one's
  6. Make changes to my wp-config.php file according to the new server(I did not forget table 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 sub directori 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!

like image 798
Hiilo Avatar asked Mar 22 '12 17:03

Hiilo


People also ask

How do I fix the repeating installation screen when migrating my WordPress site?

In this case, the easiest way to fix this problem is to edit the wp-config. php file and make sure that the prefix matches what you are using in the database. You will now be able to fix the database issues that cause the WordPress installation to continually re-start when you go to your WordPress page.

Why is WordPress showing install page?

Typically, this occurs when one or more of the database tables are corrupt — wp_options in particular. Try issuing check table and repair table statements accordingly.

Why is WordPress asking me to install?

WordPress Redirecting to Install Again This type of issue is most frequently caused by the use of an incorrect WordPress database table prefix. What you need to do to correct this is to ensure that the $table_prefix variable within your wp-config. php file matches your actual database table prefix.


2 Answers

Well finally I have solved the problem. And surprise, surprise It was the freaking UPPERCASE letter in my table prefix. I had it this way in my wp-config file wp_C5n but for some reason most of the tables got a prefix wp_c5n. But not all. So what id did was I changed my table prefix in wp_config file to all lowercase and then went through all the tables by hand via phpMyadmin to see If there's any uppercase tables left. There where about 3. They were inside usermeta table and inside options table. Now finally everything is working. Did a quick search through wordpress codex but did not find anything mentioning not to use uppercase characters.

like image 127
Hiilo Avatar answered Oct 12 '22 23:10

Hiilo


Resolved: wp-config.php setting

I had a similar problem. I got the install.php after moving files and creating a new database. It seems the install screen shows up it there is problem finding the correct database tables.

I fixed the problem by changing the following settings to be correct:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'HikeforLife_dev11');

/** MySQL database username */
define('DB_USER', 'HikeforLife_dev11');

$table_prefix  = 'wphk_';
like image 20
WebPro Avatar answered Oct 12 '22 22:10

WebPro