PHP 8.0.0 beta3 fpm alpine 도커 이미지로 그누보드 설치해봤습니다.

워드프레스 도커파일 작성이 잘 되어 있어 조금 수정해서 빌드해봤습니다.

 

PHP 8.0.0 에서는 pecl 이 안되더라구요. 

 

그래서 imagick 과 redis가 php 익스텐션에 안걸리더군요 ㅠㅠ

 

이건 시간이 좀 지나야될 것 같습니다.

 

그누보드 다운받고

 

common.php 101행을

 

[code]

if (function_exists('get_magic_quotes_gpc')) { 

[/code]

 

위와 같이 수정한 뒤 

 

밑과 같이 php-fpm을 빌드해서 db와 nginx 연동 후

 

접속해보니 설치는 되더라구요.

 

[code]

FROM php:8.0.0beta3-fpm-alpine

# persistent dependencies
RUN apk add --no-cache \
# in theory, docker-entrypoint.sh is POSIX-compliant, but priority is a working, consistent image
        bash \
# BusyBox sed is not sufficient for some of our sed expressions
        sed \
# Ghostscript is required for rendering PDF previews
        ghostscript \
# Alpine package for "imagemagick" contains ~120 .so files, see: https://github.com/docker-library/wordpress/pull/497
        imagemagick

 

# install the PHP extensions we need (https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions)
RUN set -ex; \
    \
    apk add --no-cache --virtual .build-deps \
        $PHPIZE_DEPS \
        freetype-dev \
        imagemagick-dev \
        libjpeg-turbo-dev \
        libpng-dev \
        libzip-dev \
    ; \
    \
    docker-php-ext-configure gd --with-freetype --with-jpeg; \
    docker-php-ext-install -j "$(nproc)" \
        bcmath \
        exif \
        gd \
        mysqli \
        zip \
    ; \
    \
    runDeps="$( \
        scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \
            | tr ',' '\n' \
            | sort -u \
            | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
    )"; \
    apk add --virtual .wordpress-phpexts-rundeps $runDeps; \
    apk del .build-deps

 

# https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging
RUN { \
# https://www.php.net/manual/en/errorfunc.constants.php
# https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670
        echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \
        echo 'display_errors = Off'; \
        echo 'display_startup_errors = Off'; \
        echo 'log_errors = On'; \
        echo 'error_log = /dev/stderr'; \
        echo 'log_errors_max_len = 1024'; \
        echo 'ignore_repeated_errors = On'; \
        echo 'ignore_repeated_source = Off'; \
        echo 'html_errors = Off'; \
    } > /usr/local/etc/php/conf.d/error-logging.ini

 

# fix work iconv library with alpine
# Huge thanks to chodingsana!
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ --allow-untrusted gnu-libiconv
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php

 

VOLUME /var/www/test

 

WORKDIR /var/www/test

 

CMD ["php-fpm"]
[/code]

 

 

문제는 게시판 접속이 안되고 ㅎㅎ

 

관리자 모드도 안들어가지고.. 로그인과 첫화면만 보이더군요 ㅎㅎ

 

좀더 시간이 필요할 것 같아요!

|

댓글 6개

홧팅요!!!
@亞波治 넵 ㅎㅎ 이미 다 해보고 삭제했습니다 ㅠㅠ

만드는 것만큼 지우는 것도 쉽군요 ㅠㅠ
php 8.0이라니요!
어서 라엘님의 클라우드플레어 캐시서버 구축 강좌를 쉽게 풀어서 알려주세요 ㅠ
오라클 무료서버 만들어서 사진 올렸더니 로딩 5초이상 걸립니다. 엉엉 ㅠㅜ
@뒷집돌쇠

헉.. 5분은 심한데요 ㄷㄷㄷ

사진을 너무 많이 올리건 아닐까요?

저도 오라클 무료서버에 그누보드, 워드프레스, 라이믹스 다 깔아봤지만 느리진 않았거든요...

라엘님 글에 워낙 설명이 잘 되어 있어서 안했는데... 한번 올려봐야겠네요 ㅎㅎ
근데 PHP8을 사용하더라도 구버전 코드를 사용하면 속도향상이 없겠죠??
@선셋 그건 잘 모르겠습니다. JIT 덕분에 속도가 많이 빨라진다던데요.

Opcache처럼 쓰인다고 하니.. 구버전 코드를 써도 속도향상이 있을 것 같습니다.

다만 구버전 코드를 PHP 8 문법에 맞추는게 더 힘들 것 같습니다.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

자유게시판

+
제목 글쓴이 날짜 조회
5년 전 조회 1,117
5년 전 조회 1,102
5년 전 조회 1,138
5년 전 조회 1,200
5년 전 조회 2,561
5년 전 조회 1,083
5년 전 조회 1,432
5년 전 조회 1,092
5년 전 조회 1,340
5년 전 조회 1,126
5년 전 조회 1,237
5년 전 조회 1,130
5년 전 조회 1,139
5년 전 조회 2,367
5년 전 조회 1,291
5년 전 조회 1,352
5년 전 조회 1,082
5년 전 조회 1,097
5년 전 조회 1,100
5년 전 조회 1,097
5년 전 조회 1,197
5년 전 조회 1,107
5년 전 조회 1,109
5년 전 조회 1,527
5년 전 조회 1,127
5년 전 조회 1,363
5년 전 조회 1,114
5년 전 조회 956
5년 전 조회 2,673
5년 전 조회 820
🐛 버그신고