Windows Server 2019, IIS 10에서 php 5.6.4와 함께 phpmyadmin 4.x를 사용하여 xenforo 1.2.9 구성

Windows Server 2019, IIS 10에서 php 5.6.4와 함께 phpmyadmin 4.x를 사용하여 xenforo 1.2.9 구성

버전/프로그램: xenforo 1.2.9, phpmyadmin 4.x, php 5.6.4, MySQL 8.0.32 IIS 10, Windows Server 2019

제가 가지고 있는 오래된 컴퓨터를 수리하기 위해 로컬 서버를 호스팅하려고 합니다. 이 서버는 XenForo 설치를 호스팅합니다. 그러나 내 xenforo는 1.2.9이므로 구식이며 php5.6.4가 필요합니다. 저는 이전 PHP 버전을 사용하고 있기 때문에 phpmyadmin 4.x도 필요합니다.

이 모든 것을 설치했습니다.최신 소프트웨어를 사용하는 것이 더 쉬울 것이라는 것을 알고 있습니다.xenforo를 포함하지만 저는 이 라이센스를 2013년에 구입했고 돈을 쓰기 전에 직접 사용해 보고 싶습니다. 나는 이것을 무료로 설정하고 모든 것을 업그레이드할지 결정하고 싶습니다. "설치 시작"이 표시되므로 Xenforo 디렉터리는 제대로 작동하지만 데이터베이스에 액세스할 때까지 시작할 수 없습니다.

내 문제는 내가 방문했을 때이다.로컬 호스트/phpmyadmin/index.php, 로그인 포털이 보입니다. 그러나 내 자격 증명(올바른 것으로 알고 있음)을 입력하면 다음 오류가 발생합니다.

mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password]
 mysqli_real_connect(): (HY000/2054): The server requested authentication method unknown to the client

이 오류를 해결하기 위해 ChatGPT를 사용해 왔지만 막다른 골목에 이르렀습니다. 다음 코드를 추가하라고 하더군요.config.ini.php파일:

$cfg['blowfish_secret'] = 'S&#QX3LqK6sMtp$PWV?lLfJv0<u4moPe'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
//$cfg['blowfish_secret'] = ')6U}lm)*ZRK|Q82zae=Lv\^FbVVIWp{m';

/**
 * Servers configuration
 */
$i = 0;

/**
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
//$cfg['Servers'][$i]['auth_type'] = 'config';

/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;

//$cfg['Servers'][$i]['user'] = 'xenforo';
//$cfg['Servers'][$i]['user'] = 'root';

//$cfg['Servers'][$i]['password'] = '{mypass}';


이것이 내 config.ini.php 파일에 문제가 있는지 궁금합니다. 설정은 다음과 같습니다. (나중에 배포하기 전에 복어 인증을 변경하겠습니다.)

/**
 * This is needed for cookie based authentication to encrypt password in
 * cookie. Needs to be 32 chars long.
 */
$cfg['blowfish_secret'] = 'S&#QX3LqK6sMtp$PWV?;.fJv0<u4mo[e'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

/**
 * Servers configuration
 */
$i = 0;

/**
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
//$cfg['Servers'][$i]['auth_type'] = 'config';

/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;

//$cfg['Servers'][$i]['user'] = 'root';
//$cfg['Servers'][$i]['password'] = '{mypassword}';

ChatGPT는 또한 [mysql 데이터베이스에 연결되는] PHP 파일에 다음 코드를 추가하라고 말하고 있지만 어디에 추가해야 할지 잘 모르겠습니다.

<?php

// Database configuration
define('DB_HOST', 'localhost');
define('DB_USER', 'user');
define('DB_PASS', 'password');
define('DB_NAME', 'database');

// Create a database connection
$link = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);

// Set the character set
mysqli_set_charset($link, 'utf8');

누군가 도와주세요. 나는 완전히 길을 잃었습니다. 더 많은 정보가 필요한 경우 알려주시면 이 질문을 편집하겠습니다.

나는 시도했다:

관련 정보