CentOS 6의 ISPConfig3 서버에 Roundcube를 설치하는 방법

CentOS 6의 ISPConfig3 서버에 Roundcube를 설치하는 방법

2022-10-19 last update

7 minutes reading centos ispconfig

이 튜토리얼은 The Perfect Server - CentOS 6.4 x86_64 [ISPConfig 3]을 설치했고 대체 웹메일 애플리케이션인 Roundcube를 갖고 싶어하는 사람들을 위해 만들어졌습니다. 이 Roundcube 설치가 Squirremail을 덮어쓰지 않으므로 Squiremail에 계속 액세스할 수 있습니다.
CentOS에 Roundcube를 설치하기 위한 튜토리얼이 부족하고 ISPConfig용 Roundcube 플러그인이 어떻게든 작동하지 않는다는 것을 알았습니다. 자, 시작하겠습니다.

1 단계


데이터베이스 및 데이터베이스 사용자 세부 정보를 준비해야 합니다. ISPConfig를 사용하거나 phpmyadmin 또는 sqlyog와 같은 도구를 사용하여 만들 수 있습니다. 예를 들어:
데이터베이스 이름: dbroundcubeDatabase 사용자: roundcubeuserDatabase 사용자 암호: xxxxxx그런 다음/usr/share/roundcube/SQL/mysql.initial.sql에서 SQL 파일을 가져와 데이터베이스를 초기화합니다.

2 단계


라운드큐브 코드가 저장될 폴더를 생성해야 합니다.
mkdir/usr/share/roundcubecd/usr/share/roundcube

3단계


roundcube 웹에서 최신 버전을 다운로드하고 현재 디렉토리에서 압축을 풉니다.
wget http://jaist.dl.sourceforge.net/project/roundcubemail/roundcubemail/1.0.0/roundcubemail-1.0.0.tar.gztar -zxvf roundcubemail-1.0.0.tar.gzmv roundcubemail-1.0.0 roundcubewget http//jaist.dl.sourceforge.net/project/roundcubemail/roundcubemail/1.0.0/roundcube-framework-1.0.0.tar.gztar -zxvf roundcube-framework-1.0.0.tar.gzmkdir/usr/share/roundcube/installer/Roundcubecp/usr/share/roundcube-framework-1.0.0/bootstrap.php/usr/share/roundcube/installer/Roundcube

4단계


이 폴더에 대한 액세스 권한을 부여합니다.
chown 루트:루트 -R/usr/share/roundcubechmod 777 -R/usr/share/roundcube/temp/chmod 777 -R/usr/share/roundcube/logs/

5단계


Roundcube 폴더를 가리키도록 아파치를 구성하려면./etc/httpd/conf/sites-enabled/000-ispconfig.conf 파일을 열고 다음 몇 줄을 추가합니다.
[...]
<Directory /usr/share/roundcube>
  Order allow,deny
  Allow from all
</Directory>
[...]

6단계


다음 내용으로/etc/httpd/conf.d/roundcube.conf 파일을 만듭니다.
#
# Roundcube is a webmail package written in PHP.
#
Alias /roundcube /usr/share/roundcube
<Directory /usr/share/roundcube/config> Order Deny,Allow Deny from All </Directory>
<Directory /usr/share/roundcube/temp> Order Deny,Allow Deny from All </Directory>
<Directory /usr/share/roundcube/logs> Order Deny,Allow Deny from All </Directory>
# this section makes Roundcube use https connections only, for this you # need to have mod_ssl installed. If you want to use unsecure http # connections, just remove this section: <Directory /usr/share/roundcube> RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} </Directory>

7단계


/usr/share/roundcube/installer/index.php 파일을 편집하고 이 줄을 변경하십시오.
require_once 'bc.php';
에게
require_once '/usr/share/roundcube/program/include/bc.php';
그런 다음 웹 서버를 다시 시작하십시오.
서비스 httpd 다시 시작

8단계


https://{your_ip}/roundcube/installer URL을 엽니다. 모든 테스트가 제대로 되었는지 환경을 확인합니다. 데이터베이스 섹션의 경우 설치하려는 데이터베이스가 올바른지 확인하십시오. "사용할 수 없음"에 표시되면 다음을 수행하십시오.
국제: 사용할 수 없음
yum -y libicu-develyum 설치 -y php-intl 설치
date.timezone: 사용할 수 없음 php.ini를 편집하고 값을 설정하십시오. 예를 들어 아시아/쿠알라_룸푸르
웹 서버를 다시 시작하십시오.

9단계


데이터베이스 세부 정보를 입력하고 CREATE CONFIG 버튼을 누릅니다. 시스템에서 생성한 코딩을 복사하여/usr/share/roundcube/config/config.inc.php에 붙여넣습니다.

10단계


다음 페이지로 계속하세요. mime.types에 Not OK가 있는 경우 아래에서 다음 단계를 수행하십시오./etc/httpd/conf/httpd.conf를 열고 다음 주석 해제가 있는지 확인하십시오.
유형 구성/etc/mime.types
그 다음에,
cd/etcmv/etc/mime.types/etc/mime.types.bakwget http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.typesservice httpd 다시 시작

11단계


roundcube에서 설치 프로그램 폴더를 제거합니다.
rm -rf/usr/share/roundcube/installer
이제 https://{your_ip}/roundcube에서 사서함에 로그인을 시도할 수 있습니다.

참조 링크


  • #!/changing-from-squirrelmail-to-roundcube-on-your-ispconfig3-server
  • http://www.ochounos.com/blog/13
  • https://www.centos.org/forums/viewtopic.php?t=29226
  • 이 튜토리얼에서 잘못된 점을 언급했다면 정정해 주십시오. 내 문법 실수를 고칠 수도 있습니다 (많이 있음을 압니다 히히). 감사.