[phpBB] The installer detected a timeout The installer has detected a timeout...

  phpBB를 'Advanced Update'로 판올림(업그레이드)할 때 이런 오류가 나오기도 한다.

phpBB update - The installer detected a timeout...
The installer detected a timeout...
The installer detected a timeout

The installer has detected a timeout, you may try to refresh the page, which may lead to data corruption. We suggest that you either increase your timeout settings or try to use the CLI.

[phpBB Debug] "fopen(../store/io_lock.lock): Failed to open stream: Permission denied" in file /.../phpbb/install/helper/iohandler/ajax_iohandler.php on line 473

  allow_url_fopen을 끄면(allow_url_fopen= Off)로 하면 http://와 ftp://를 통한 파일 접근을 할 수 없다. 웹 서버의 php.ini에서 allow_url_fopen을 끈 것이 timeout 문제를 일으키는지도 모르겠다. 하지만 정확히 어떤 까닭 때문인지를 알아내지 못했다.

 아래는 이 오류에 관하여 phpBB 토론 게시판 글에 나온 php 설정 권장값이다.

allow_url_fopen = On
allow_url_include = On
asp_tags = Off
display_errors = Off
enable_dl = Off
file_uploads = On
max_execution_time = 1500
max_file_uploads = 500
max_input_time = 900
max_input_vars = 1500
memory_limit = 228M
session.gc_maxlifetime = 1440
upload_max_filesize = 228M

  다른 방법으로는 PHP CLI를 통하여 phpBB를 판올림할 수 있다.

$ php ./install/phpbbcli.php update config.yml

  여기에서 config.yml 파일은 경로를 달리 지정하거나 복사하거나 만들어 주어야 할 수 있다. 자료기지(데이터베이스)만 갱신하려고 한다면, config.yml에 다음 내용을 넣어 준다.

updater:
	type: db_only

  phpbbcli.php는 /install이 아닌 다른 경로(/bin)에도 있다. 아래는 phpbbcli.php로 DB를 갱신하는 명령어이다.

$ php ./bin/phpbbcli.php db:migrate --safe-mode

▣ 참고한 곳

2022/09/07 15:26 2022/09/07 15:26
글 걸기 주소 : 이 글에는 글을 걸 수 없습니다.

덧글을 달아 주세요