Skip to content

yengsu/gajija_board

Repository files navigation

Gajija_board

Usage

Note: PHP 7.0 이상


Nginx 서버인 경우 (nginx.conf 설정) - 선택사항

client_max_body_size 100M;


php.ini 설정 - 선택사항

폼 전송시 변수갯수

max_input_vars = 5120

memory_limit = 256M

폼 데이타 및 파일업로드

post_max_size 100M
upload_max_filesize 8M

my.cnf 설정 (DB : mysql or maria ) - 선택사항

group_concat_max_len=10240

퍼미션설정

  1. html 캐쉬 디렉토리

    mkdir -R cache/dynamic
    mkdir -R cache/template
    chmod -R 707 cache
  2. XSS방어 관련 캐쉬 디렉토리

    (디렉토리 변경시 참조: http:https://htmlpurifier.org/download#toclink1)

    chmod 707 app/lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer
  3. temp 디렉토리

    chmod 707 tmp/
  4. 데이타 디렉토리

    chmod -R 707 datas/
  5. html 디렉토리

    chmod 707 html
    chmod -R 707 html/_attach/
    chmod -R 707 theme/template1/html/_attach/

db 설정

conf/database.conf.dev.php 를 conf/database.conf.php 로 파일명 변경하세요.

chmod 707 conf/database.conf.php

composer로 library 설치 (해당 폴더의 파일참조: Readme)

Windows 환경인 경우

Git Bash 사용을 위해 설치 : https://git-scm.com/downloads

설치후 아래 해당하는 폴더에 들어가서 오른쪽 마우스 클릭하여 "Git Bash Here" 를 선택함.

그런 후 아래 내용을 참조하여 진행하세요.

php.ini (확장모듈 요구사항)

extension=php_fileinfo.dll

composer 명령어 사용을 위한 설치가이드 참조 :

 https://getcomposer.org/

 https://www.lesstif.com/pages/viewpage.action?pageId=23757293
  1. phpOffice (참조 : https://github.com/PHPOffice/PhpSpreadsheet)

    설치경로: app/lib/PhpOffice

    composer require phpoffice/phpspreadsheet
  2. facebook Api

    설치경로: app/lib/Api/facebook

    composer require facebook/graph-sdk
  3. google Api

    설치경로: app/lib/Api/google

    composer require google/apiclient:^2.0

사용 참조 URL

템플릿엔진 : Template_ (https://tpl.xtac.net/introduction/)