AtoM 2.2 설치 매뉴얼 3

edited July 2016 in AtoM
2. AtoM 다운로드

매뉴얼에 제시된 두 가지 방법 중 옵션2. GIT 리포지터리로부터 다운로드 방법을 설명함.

○ git 설치
sudo apt-get install git

atom 디렉토리 생성
sudo mkdir /usr/share/nginx/atom

git 클론
sudo git clone -b stable/2.2.x http://github.com/artefactual/atom.git /usr/share/nginx/atom

atom 디렉토리로 이동
cd /usr/share/nginx/atom

만약 git으로부터 모든 리비전 히스토리를 다운로드하지 않으려면, 특정 리비전 숫자로 한정할 수 있음.
git clone --depth 1 http://github.com/artefactual/atom.git /usr/share/nginx/atom

git 저장소로부터 소스코드를 클론한 뒤에는, CSS파일을 컴파일해야 함
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs make
sudo npm install -g "less@<2.0.0"
cd /usr/share/nginx/atom/plugins/arDominionPlugin/
sudo make # At this point the files still belong to root



3. 파일시스템 접근권한 설정

www-data 이용자가 NGINX 기본 서버를 이용할 경우, AtoM 하위의 디렉토리에 웹서버가 쓰기 가능하도록 설정해야 함. 가장 쉬운 방법은 AtoM 디렉토리와 컨텐츠의 소유자를 업데이트하는 것임.

sudo chown -R www-data:www-data /usr/share/nginx/atom

만약 AtoM 환경을 공유하여 전개하려면, 타 이용자 접근제한에 각별히 신경써야 함. 아래는 타 이용자의 모든 접근모드를 제거하는 방법임.

sudo chmod o= /usr/share/nginx/atom


4. 데이터베이스 생성

로컬호스트에서 MySQL을 실행하고 있다면, 미리 설정해 놓은 패스워드를 이용하여 아래 명령어를 입력하고, 데이터베이스를 생성해야 함.
mysql -h localhost -u root -p -e "CREATE DATABASE atom CHARACTER SET utf8 COLLATE utf8_unicode_ci;"

데이터베이스 이름이 atom 으로 설정되어 있으나, 이를 변경해도 무방함.
MySQL 서버와 웹서버가 다를 경우, "localhost"항목에 MySQL 서버 주소를 적어야 함.
(예전 데이터베이스를 재사용하지 말고, 반드시 새로운, 비어있는 데이터베이스를 사용해야 함)

패스워드 12345를 사용하는 atom 이라는 AtoM의 특정 MySQL 이용자를 데이터베이스에 추가하는 방법은 데이터 안전을 보장하는 좋은 방법임. 아래와 같이 설정하면 됨.

mysql -h localhost -u root -p -e "GRANT INDEX, CREATE, SELECT, INSERT, UPDATE, DELETE, ALTER, LOCK TABLES ON atom.* TO 'atom'@'localhost' IDENTIFIED BY '12345';"

INDEX, CREATE, ALTER 등의 권한은 AtoM을 설치하거나 업그레이드할 경우에만 필요하므로, 설치가 끝난 후 config.php 파일을 열어 이용자를 변경하는 것이 좋음.


5. 웹 인스톨러 실행
웹 브라우저를 열고 주소창에  http://localhost등의 주소를 입력하여 접속하면, AtoM이 웹 인스톨러를 자동으로 실행함.

**중요
만약 500 internal server error 가 발생한다면 아래와 같이 해결하면 됨AtoM v2.2.0 설치 중 마지막 단계인 웹인스톨러 설치 단계에서 페이지 500 에러 발생시 해당 웹주소 뒤에 다음의 URL 을 입력하면 설치 화면이 나타납니다. 뒤에 빨간색으로 표시된 URL만 붙여주시면 됩니다.http://서버주소/index.php/sfInstallPlugin/checkSystem
* 출처 : https://groups.google.com/forum/#!topic/ica-atom-users/L3jB7FQMaN8
이 설치 과정에서는 데이터베이스 서버의 위치 등을 설정하게 됨.
아래 붉은 색 필드를 직접 작성해야 함

Database name: atom
Database username: atom
Database password: 12345
Database host: localhost
Database port: 3306
Search host: localhost
Search port: 9200
Search index: atom

**중요Unable to open PDO connection [wrapped: SQLSTATE[28000] [1045] Access denied
위 에러가 발생할 경우 아래처럼 config.php파일을 지웠다가 다시 생성
rm /usr/share/nginx/atom/config/config.php

sudo su
sudo chown -R www-data:www-data /usr/share/nginx/atom

sudo service php5-fpm restart
출처: https://groups.google.com/forum/?hl=ko#!searchin/ica-atom-users/Unable$20to$20open$20PDO$20connection|sort:relevance/ica-atom-users/L3jB7FQMaN8/ow30rPjIPVgJ

-또한, 나머지 필드들도 필요에 따라 작성함

Site title
Site description
Site base URL
Username
E-mail address
Password
Sign In or Register to comment.