11.Nas_1


piwigo-11.3.0설치 Warning: date(): It is not safe to rely on the system's timezone settings


  • 링크

  • 첨부

  • 컨텐츠 정보


    본문

    piwigo-11.3.0설치  Warning: date(): It is not safe to rely on the system's timezone settings

    3232235521_1615650467.3712.png

    다운로드는 

    https://piwigo.org/get-piwigo

    https://piwigo.org/guides/install/netinstall

    참조하여 설치폴더에 파일을 복사


    초기설치 작업

    cd /volume1/web

    chmod 777 -R piwigo


    첨부 piwigo-netinstall.php 를 /volume1/web 에 복사 합니다

    설치명령은 저의사이트 설치사례 이동하며 문구와같이  설치 합니다.

    초기설치시 timezone settings 문제 발생

    Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /volume1/web/piw/include/common.inc.php on line 141 Call Stack: 0.0000 243832 1. {main}() /volume1/web/piw/index.php:0 0.0001 244744 2. include_once('/volume1/web/piw/include/common.inc.php') /volume1/web/piw/index.php:26 0.0025 598464 3. date() /volume1/web/piw/include/common.inc.php:141 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /volume1/web/piw/include/common.inc.php on line 141 Call Stack: 0.0000 243832 1. {main}() /volume1/web/piw/index.php:0 0.0001 244744 2. include_once('/volume1/web/piw/include/common.inc.php') /volume1/web/piw/index.php:26 0.0026 598784 3. date() /volume1/web/piw/include/common.inc.php:141


    1) timezone문제 해결

    (1) v:\web\piwigo\.htaccess .htaccess 파일 추가
    <IfModule mod_rewrite.c>
    php_value date.timezone 'Asia/Seoul'
    #php.ini add
    #date.timezone = Asia/Seoul
    </IfModule>

    (2) php.ini 수정
    -경로확인
    3232235521_1615538753.4889.png

    /volume1/@appstore/WebStation/misc/php56.ini
    php56.ini.20210311

    date.timezone = Asia/Seoul 를 추가 하기 위하여 수정 가능 한 폴더에 복사합니다
    cp /volume1/@appstore/WebStation/misc/php56.ini /volume1/@appstore/WebStation/misc/php56.ini.back
    cp /volume1/@appstore/WebStation/misc/php56.ini /volume1/web/phpini/php56.ini.20210312
    권한수정후 내용을 수정 합니다
    chmod 777  /volume1/web/phpini/php56.ini.20210312
    nano /volume1/web/phpini/php56.ini.20210312
    date.timezone = Asia/Seoul
    를 추가 합니다

    원래위치에 복사 합니다.
    cp /volume1/web/phpini/php56.ini.20210312 /volume1/@appstore/WebStation/misc/php56.ini
    확인
    cat /volume1/@appstore/WebStation/misc/php56.ini
    3232235521_1615539947.5479.png
    서버 재부팅
    상기까지만 설치시 한글폴더 문제 발생
    3232235521_1615542877.8116.png

    정상설치후 문제점 (첨부pdf 파일 참조 아래와같이 수정 적용)

    한글 폴더 인식1
    /include/config_default.inc.php 의 파일에서 ... 761 라인을 다음과 같이 수정합니다. 수정전 $conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_.]+$/'; 수정후 $conf['sync_chars_regex'] = '/[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}0-9a-zA-Z]+/u';

    한글 파일인식2
    //v:\web\piwigo\admin\site_update.php 애 아래 1개 라인 추가
    function getbasename($path) {$pattern = (strncasecmp(PHP_OS,'WIN', 3) ? '/([^\/]+)[\/]*$/' : '/([^\/\\\\]+)[\/\\\\]*$/');if (preg_match($pattern, $path, $matches))return $matches[1];return '';}
    추가 후에...../admin/site_update.php 의 파일에서.. basename 으로 되어있는 소스를 모두 getbasename 으로 수정한다.

     썸네일문제 해결
    //v:\web\piwigo\admin\include\image.class.php
    //      $library = $conf['graphics_library'];
        $library = $conf['graphics_library']='gd';

     추가적인 문제 발생시 pdf  파일 참조드리며  상기까지  적용 성공입니다

    3232235521_1615544931.2999.png


    ftp 또는 복사후  사진폴더 추가 설정

    공개용 /비공개용 파일 폴더 수정

    3232235521_1615546091.7109.png

    이제 폴더를 복사 합니다

    복사않고 마운트 진행 예정


    ■ ▶ ☞ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다 ♠ . ☞ 본자료는 https://11q.kr 에 등록 된 자료 입니다♠.

    뷰PDF add1,add2



    관련자료

    댓글 0
    등록된 댓글이 없습니다.


    전체 1,747 / 8 페이지
    전체 1,747 / 8 페이지



    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-05-04 11:21:29

    오늘의 홈 현황


    • 현재 접속자♨ 264 명
    • 오늘 가입자※ 0 명
    • 어제 가입자※ 5 명
    • 주간 가입자※ 16 명
    • 오늘 방문자 1,515 명
    • 어제 방문자 1,765 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,303,037 명
    • 전체 게시물※ 8,552 개
    • 전체 댓글수※ 24,555 개
    • 전체 회원수 10,949 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑