본문 바로가기
정보기술/웹&데이터베이스

Alfresco PHP Library Installation Instructions - Ubuntu 10.10 기준

by fermi 2010. 11. 27.
참고문헌: 

1. Alfresco Community Edition 설치
http://wiki.alfresco.com/wiki/Download_and_Install_Alfresco
alfresco-community-3.4.b-installer-linux-x32.bin (32-bit Linux Installer)
alfresco-community-3.4.b-installer-linux-x64.bin (64-bit Linux Installer)
다운로드 후 permission 변경 (chmod +x) 후 파일 실행하면 GUI 기반의 설치 진행
참고로, mysql, tomcat 등이 모두 통합된 것이므로 Ubuntu에 mysql, tomcat 등을 설치하지 말고 clean install된 Ubuntu에서 작업하는 것을 추천
(설치되는 경로는 /opt/alfresco-3.4.a)

2. Alfresco PHP Library 설치 준비
http://wiki.alfresco.com/wiki/Alfresco_PHP_Library_Installation_Instructions
Ubuntu Software Center 에서 다음 package 설치
- php5
- php5-mysql
- apache2
- subversion (검색어를 svn 으로 입력해야 나옴)
설치 후 php -m 명령어로 soap, socket, mysql 모듈이 나오는지 확인

2. Alfresco PHP Library 다운로드
http://wiki.alfresco.com/wiki/Alfresco_SVN_Development_Environment
Subversion check out
svn co svn://svn.alfresco.com/alfresco/HEAD/root/modules/php-sdk/source/php/remote
다운 받은 /remote 디렉토리를 원하는 위치에 복사 (예: /opt/alfresco-3.4.a/php-sdk/source/php/remote)

3. php.ini 수정
/etc/php5/apache2/php.ini
include_path="/opt/alfresco-3.4.a/php-sdk/source/php/remote" 추가

4. Apache conf 수정
/etc/apache2/apache2.conf 는 /etc/apache2/sites-enabled 를 자동으로 포함하므로
/etc/apache2/site-enabled/alfresco 파일을 만들고 다음 내용을 작성

Alias /alfresco "/opt/alfresco-3.4.a/php-sdk/source/php/remote"

<Directory "/opt/alfresco-3.4.a/php-sdk/source/php/remote">
   Options Indexes MultiViews
   AllowOverride None
   Order allow,deny
   Allow from all
</Directory>

5. Apache 재시작
/etc/init.d/apache2 restart

6. Sample script 테스트
http://localhost/alfresco/Examples/QueryExecuter/queryExecuter.php
http://localhost/alfresco/Examples/SimpleBrowse/index.php
를 확인

7. PHP API Tutotial