program story

Wordpress는 마이그레이션 후 install-php로 계속 리디렉션합니다.

inputbox 2020. 12. 27. 10:50
반응형

Wordpress는 마이그레이션 후 install-php로 계속 리디렉션합니다.


여기 내 상황이 있습니다. 나는 사이트를 다른 서버로 옮기는 것에 대한 워드 프레스 코덱스 페이지의 정확한 지시를 따랐다. 내가 취한 조치는 다음과 같습니다.

  1. 내 데이터베이스 사본 내보내기
  2. 새 서버에서 새 데이터베이스 만들기
  3. 이전에 내 보낸 데이터베이스 가져 오기
  4. Ftp를 통해 내 Wordpress 파일 사본 업로드
  5. 스크립트사용 하여 모든 로컬 URL을 새 URL로 변경하십시오.
  6. 새 서버에 따라 내 wp-config.php 파일을 변경합니다 (테이블 접두사를 잊지 않았습니다. 일부 대문자가 포함되어 있지만)

그런 다음 새 위치에서 내 사이트를 열려고하면 wp-admin / install.php로 이동합니다. 이제 시나리오를 더 명확하게 만들기 위해 : 대상 폴더 (라이브 서버에서)는 public_html 폴더의 하위 디렉토리입니다. 이미 그 안에 또 다른 워드 프레스가 설치되어 있습니다 (중요해야 할 경우를 대비해서 말하고 있습니다)

내 .htaccess는 다음과 같습니다.

    # 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

phpMyadmin을 통해 내 테이블을 확인하고 복구하려고 시도했지만 모든 것이 정상인 것 같고 문제에 영향을 미치지 않습니다.

또한 라이브 서버에서 데이터베이스를 비우고 설치를 진행했습니다. 그리고 문제없이 설치되고 모든 것이 잘 작동하지만 다른 새로 설치에는 사용하지 않습니다. 그러나 나는 이것이 적어도 wp-config 파일의 문제를 배제한다고 생각합니다. Wordpress 버전 3.3.1을 사용하고 있습니다.

그래서 제가 남긴 큰 질문은 다음과 같습니다. 마이그레이션 후 WordPress에서 내 설치를 인식하지 못하는 이유는 무엇입니까?

많은 도움을 주셔서 감사합니다!


마침내 나는 문제를 해결했습니다. 그리고 놀람, 놀람 내 테이블 접두어의 이상한 대문자였다. 내 wp-config 파일 wp_C5n에서 이런 식으로 사용했지만 어떤 이유로 대부분의 테이블에는 접두사 wp_c5n이 있습니다. 하지만 전부는 아닙니다. 그래서 id가 한 것은 wp_config 파일의 테이블 접두사를 모두 소문자로 변경 한 다음 phpMyadmin을 통해 모든 테이블을 직접 검토하여 대문자 테이블이 남아 있는지 확인했습니다. 거기에 약 3 개가 있습니다. 그들은 usermeta 테이블과 옵션 테이블 안에있었습니다. 이제 마침내 모든 것이 작동합니다. 워드 프레스 코덱스를 빠르게 검색했지만 대문자를 사용하지 않는다는 내용을 찾지 못했습니다.


해결됨 : wp-config.php 설정

비슷한 문제가있었습니다. 파일을 이동하고 새 데이터베이스를 만든 후 install.php를 얻었습니다. 설치 화면에 올바른 데이터베이스 테이블을 찾는 데 문제가있는 것 같습니다.

다음 설정을 올바르게 변경하여 문제를 해결했습니다.

// ** 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_';

두 가지를 확인합니다.

  • 먼저 데이터베이스에 구성된 URL을 확인합니다. wp_options 테이블과 "siteurl"및 "home"옵션의 값을 확인하십시오. 도메인이 변경된 경우 업데이트해야 할 수도 있습니다.

  • 또 다른 옵션은 Apache 서버가 .htaccess를 가져올 수 없다는 것입니다. httpd.conf 파일에서 "AllowOverride"옵션이 "all"인지 확인하십시오.

도움이되기를 바랍니다.


비슷한 문제가 발생했습니다. 하지만 위의 제안 중 어느 것도 도움이되지 않았습니다.

결국 저는 프로덕션 환경의 Wordpress MySQL 사용자에게 충분한 권한이 할당되지 않았 음을 깨달았습니다.


localhost에 서버 설정을 설치하려고 할 때 로컬 호스트에 DB와 구성 파일을 구성했습니다. install.php로 리디렉션되었습니다.

wp

확인 : yourTableName_options가 이동 한 이동에에 'option_id'-'1 ' 변경 'yousite URL ''로컬 호스트 / youLocalSiteFolderName '

'option_id'로 이동 - '37'homw 값을 'localhost / youLocalSiteFolderName'으로 변경

확인 : 2 'wp_config'파일로 이동 확인 : $ table_prefix = ' yourNew_Prefix_ ';

도움이되기를 바랍니다.


Don't forget also the table prefixes if you installation don't use the default prefix.


I experienced the same issue as the OP - Wordpress keeps redirecting to install-php after migration.

Problem was my database tables are named as prefix_tablename and I missed the underscore from $table_prefix in wp-config.

$table_prefix = 'myprefix';

should have been

$table_prefix = 'myprefix_';


This happened to me after I copy migrated an existing website to WP Engine and forgot to do one thing required by WP Engine:

Update the WordPress core installation of the site that is being copied to the latest version.

So here was the problem then:

My old site that I was copying from another server to WP Engine had version 4.0. However, when you copy an existing site to WP Engine, you don't copy the WordPress core files, you only copy the contents of wp-content and the state (or snapshot) of the existing database. So the state of the database for my existing site was for an installation running WP 4.0. Nevertheless, when you create a new WordPress install on WP Engine, that install is created with the latest version of WordPress, which, at the time happened to be version 4.0.1, so that means the core files on the destination (WP Engine) were for a 4.0.1 installation but the database snapshot I was gonna import into WP Engine was for version 4.0. So when I overwrote the default WP Engine database with the import of the copy the database of my old site, I got the redirection error to the install script.

So to fix it, I just logged into the WordPress admin site of the site on WP Engine, made sure to reset the file permissions (by clicking the blue button), which, you sometimes have to do on WP Engine, and then re-installed the WordPress core, which, basically updates your database so that internally the db state was for a WordPress 4.0.1 install and the core files also match the version.

Took me a while to figure out what was going on.


I had the same problem and I fixed it by changing the database user privileges to full read & write.


I tried all of these solutions before I realized that I had enabled opcache in PHP on my live environment. Wordpress was not reading a cached version of wp-config.


I experienced this issue today and started searching on internet. In my case there was no table in my DB. I forgot to import the tables on the online server. I did it and all works fine.


I got this problem when I used br tag in single product page of woocommerce. I was trying to edit the template that suddenly everything ... . that was a nightmare. My customer could kill me. try not to use this br tag anywhere.


There can be many causes to this problem.

My suggestion is to turn on WP_DEBUG in wp-config.php

define('WP_DEBUG', true);

ReferenceURL : https://stackoverflow.com/questions/9827164/wordpress-keeps-redirecting-to-install-php-after-migration

반응형