Q&A

XE에서 라이믹스로 이전하는데 조금 문제... 조언 바랍니다. (php7.4.33 -> php8.2.22).

2024.07.07 07:04
206
0
CMS/프레임워크 Rhymix 2.1
개발 언어 PHP 8.2
문제 페이지 주소 비공개 (작성 후 5일 경과)

안녕하세요,

 

운영중인 사이트를 XE에서 라이믹스로 이전 중입니다.

 

작업내용은

1) 기존에 운영하던 사이트 XE(1.11.15, php5.4.45) 데이터를 백업받아 닷홈 PHP7.4.33 웹 호스팅에 업로드 후 사이트 주소, DB 주소등을 변경해 주었음.

   결과 : 외부 페이는 연결이 안되지만 나머지 게시판 쓰기/보기, 위젯 및 레이아웃 등은 정상작동 합니다.(일부 이미지는 엑박)

 

2) php 8.2 호스팅을 새로 만든 후 위의 DB및 XE(1.11.15, PHP7.4.33) 를  백업받아 php 8.2 사이트로 업로드 한 후 Rhymix(2.1.16)를 업데이트 하면 아래와 같은 메시지가 출력되면서 중지 되는데...  해결책이 있을까요?

 

---호스팅 사 DB:---

서버: Localhost via UNIX socket

서버 타입: MySQL

서버 연결: SSL is not being used 

서버 버전: 8.0.36 - Source distribution

제품 버전: 10

사용자: chungfamily@localhost

서버 문자셋: UTF-8 Unicode (utf8mb4)

 

 

---에러 메시지---

-처음에는 memory size of 268435456 bytes exhausted.... 하는 메시지 2개가 나와서

질/답 찾아보고 files/ 밑에 있는 cache 폴더를 지움.

 

- 다시 연결하니 엄청 많은 워닝 메시지 출력(한참걸림) 후 종료.

메시지는 비슷한 패턴이 반복 되는듯 하여 처음 부분과 맨 끝 메시지를 첨부해 봅니다.

 

출력 메시지 첫부분 일부

Warning: Undefined array key "db_charset" in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 87

Warning: Undefined array key "db_charset" in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 119

Warning: Undefined property: stdClass::$secret_key in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 148

Warning: Undefined property: stdClass::$http_port in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 180

Warning: Undefined property: stdClass::$https_port in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 181

Warning: Undefined property: stdClass::$delay_session in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 194

Warning: Undefined property: stdClass::$minify_scripts in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 198

Warning: Undefined property: stdClass::$use_sitelock in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 207

Warning: Undefined property: stdClass::$sitelock_title in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 208

Warning: Undefined property: stdClass::$sitelock_message in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 209

Warning: Undefined property: stdClass::$embed_white_iframe in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 221

Warning: Undefined property: stdClass::$embed_white_object in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 229

Warning: Undefined array key "db_charset" in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 87

Warning: Undefined array key "db_charset" in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 119

Warning: Undefined property: stdClass::$secret_key in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 148

Warning: Undefined property: stdClass::$http_port in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 180

Warning: Undefined property: stdClass::$https_port in /hosting/chungfamily/html/rhymix/common/framework/parsers/ConfigParser.php on line 181
.........

 

맨 마지막 줄 메시지

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32768 bytes) in /hosting/chungfamily/html/rhymix/files/config/db.config.php on line 1

 

감사합니다.

ksc

 

댓글 2

  • 2024.07.07 08:02 #1830328

    PHP 7.4에서 라이믹스 전환까지 마친 후,

    모든 것이 정상 작동하는 상태에서 PHP 8.2로 변경을 시도하세요.

     

    정석대로 해도 쉽지 않은 것이 PHP 8 전환인데

    PHP 8에서 돌아가지도 않는 XE 소스를 올려놓고,

    라이믹스한테 그 소스를 불러와서 업그레이드하라고 시켰으니

    무슨 일이 일어나더라도 이상하지 않지요.

     

    살다살다 db.config.php에서 메모리 초과가 뜨는 것은 처음 보네요. ㅠ

     

    1. 다른 계정에서 사용하던 파일을 웹호스팅에 그대로 업로드하셨다면

    files 폴더와 그 아래에 있는 모든 서브폴더, 서브서브폴더... 의 퍼미션을 확인해야 합니다.

    그냥 FTP로 업로드한 파일은 웹서버에서 다루지 못할 가능성이 높습니다.

     

    2. 기존 계정은 어쩔 수 없다 쳐도, 새 계정을 왜 굳이 닷홈에...?

  • 2024.07.07 08:51 #1830334

    기진곰님 안녕하세요,

    네, php8.2 옮기는게 생각처럼 쉽게 되지는 않는군요.
    1. XE(php7.4)에서 잘 안되고 있는곳이 외부페이지 인데, 일단 이걸 해결한 다음 php8.2로 옮겨봐야겠군요.
    2. 고맙게도 닷홈 무료계정에서 php8.2를 지원 해주어서... 준비삼아 이전을 해보는 중입니다.

    댓글 및 조언 감사합니다.
    ksc