조회 수 1485 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

Piwigo는 웹서버가 설치된 곳이라면 어디서든 사용할 수 있다. 

나스에서 웹서버 설정을 해놓고 사용을 하는지라 설정해보고 있다.


또한 더불어 내 PC윈도우에 nginx 서버를 만들고 mysql에 계정을 주고 구성해놓고 있다. 


출처 :http://xenostudy.tistory.com/415


1. piwigo 에서 한글 파일/폴더명 인식시키기

./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. 한글 파일 인식 오류 해결하기

./admin/site_update.php 의 파일에서..

아래의 함수를 적당한 위치에 추가한다.


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 으로 수정한다.


=========================================

일단 위와 같이 해보았으나  Nas에서는 정상작동되지만 윈도우에 구축한 서버에서는 해결되지 않는다.

윈도우의 기본 인코딩 때문인듯..


  1. 하드디스크 업그레이드, hdd 마이그레이션

    Date2015.10.07 By행복아이 Views2294
    Read More
  2. 포토스테이션에 다른 폴더 추가하

    Date2016.09.28 By행복아이 Views1698
    Read More
  3. 웹서버활용시 업로드 용량 수정 - php.ini 수정

    Date2015.10.29 By행복아이 Views2138
    Read More
  4. 오디오스테이션,비디오스테이션 파일 보이지 않는 문제

    Date2015.09.25 By행복아이 Views622
    Read More
  5. 사진파일명 일괄 변경

    Date2016.01.12 By행복아이 Views1884
    Read More
  6. 로그인문제

    Date2015.06.13 By행복아이 Views440
    Read More
  7. Xpenology 설치하기 5.0 5.1

    Date2015.02.02 By행복아이 Views10304
    Read More
  8. Xpenology 사이트 패쇄에 따른..

    Date2015.04.24 By행복아이 Views945
    Read More
  9. Xpenology self-boot 만들기 및, 디스크 백업 및 복원

    Date2015.02.03 By행복아이 Views5538
    Read More
  10. xpenology PXE 네트워크부팅으로 설치하기

    Date2015.08.18 By행복아이 Views2881
    Read More
  11. Xpenology piwigo 썸네일 자동생성

    Date2014.11.03 By행복아이 Views1927
    Read More
  12. xpenology 5.1 self boot 하드부팅 만들기

    Date2015.03.24 By행복아이 Views17975
    Read More
  13. xpenology 5.0 self boot ,하드부팅 만들기

    Date2015.03.24 By행복아이 Views4047
    Read More
  14. xpenology 5.0 5.1로 마이그레이션하기 - 업그레이드

    Date2015.03.25 By행복아이 Views3661
    Read More
  15. Vsphere EsXi 5.5 xpenology 설치 전반적

    Date2015.09.25 By행복아이 Views2562
    Read More
  16. Video Station DTS MKV 영상 음성 재생

    Date2015.04.02 By행복아이 Views3419
    Read More
  17. Tvheadend 트랜스코딩 pipe 이용

    Date2016.12.10 By행복아이 Views1539
    Read More
  18. Tvheadend Recording File Name

    Date2016.08.10 By행복아이 Views1134
    Read More
  19. Tvheadend m3u 추출

    Date2016.07.27 By행복아이 Views1350
    Read More
  20. SAMBA 세션 연결 해제(끊기)

    Date2015.08.21 By행복아이 Views1653
    Read More
Board Pagination Prev 1 2 Next
/ 2