CentOS 7.x RoundCube 설치 방법


wget 으로 소스코드를 다운로드 받아서 설치할 수도 있지만 이번에는 yum install 로 설치하는 방법에 대해서 알아보겠습니다.


▶ RoundCube 설치

# yum install roundcubemail

1.1.12 가 설치 되는군요~


▶ 메일 DB 생성

# mysql -u root -p

CREATE DATABASE rcube;

GRANT ALL PRIVILEGES ON rcube.* TO rcube@localhost IDENTIFIED BY '비밀번호';

exit;

# mysql -u rcube -p rcube < /usr/share/roundcubemail/SQL/mysql.initial.sql


▶ RoundCube 설정

# cp -p /etc/roundcubemail/config.inc.php.sample /etc/roundcubemail/config.inc.php

# vi /etc/roundcubemail/config.inc.php

//$config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';

// 위 부분을 찾아서 아래와 같이 수정

$config['db_dsnw'] = 'mysql://rcube:비밀번호@localhost/rcube';

$config['product_name'] = 'RCube Webmail'; // HTML Title 부분에 나오는 내용, 적당한 이름으로 변경


▶ 아파치 설정

# vi /etc/httpd/conf.d/roundcubemail.conf

<Directory /usr/share/roundcubemail/>

    <IfModule mod_authz_core.c>

        # Apache 2.4

        Require local

        Require all granted

    </IfModule>

</Directory>

<Directory /usr/share/roundcubemail/installer/>

    <IfModule mod_authz_core.c>

        # Apache 2.4

        Require local

        Require ip 허용아이피

    </IfModule>

</Directory>

# systemctl restart httpd

roundcubemail 과 roundcubemail/installer 두 곳 모두 수정하여야 합니다.

혹시 아파치 2.2 버전대라면 아랫쪽을 수정하시면 됩니다.


이제 완료되었습니다.

웹브라우저에서 http://domail.com/roundcubemail 로 웹메일 접속이 가능합니다.


여기에서 언급되지 않은 부분은 https://ivps.tistory.com/577 여기를 참고해서 설정하시면 됩니다.





블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,