FreeBSD - roundcube

Установка

 cd /usr/ports/mail/roundcube && make install clean

Настройка

create mysql db

 mysql> CREATE DATABASE roundcubemail /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
 mysql> GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost IDENTIFIED BY 'password';
 mysql> quit

наполнение mysql db

 mysql -u roundcube -ppassword roundcubemail < /usr/local/www/roundcube/SQL/mysql.initial.sql

настройка roundcube

 cd /usr/local/www/roundcube/config && chmod 600 *
 chmod -R o-rwx /usr/local/www/roundcube/

db.inc.php

 $rcmail_config['db_dsnw'] = 'mysql://roundcube:password@localhost/roundcubemail';

main.inc.php

 $rcmail_config['default_host'] = 'localhost';
 
 $rcmail_config['smtp_server'] = 'localhost';
 
 $rcmail_config['language'] = ru_RU;

Настройка веб

roundcube.conf

 <VirtualHost *:80>
         ServerAdmin postmaster@site
         DocumentRoot "/usr/local/www/roundcube/"
         ServerName mail.site
 
         <Directory "/usr/local/www/roundcube/">
                 Options none
                 AllowOverride Limit                
 
                 Order Allow, Deny
                 Allow from all
 
                 <IfModule mod_fcgid.c>
                         <Files ~ (\.php)>
                                 SetHandler fcgid-script
                                 FCGIWrapper /usr/local/bin/php-cgi .php
                                 Options +ExecCGI
                         </Files>
                 </IfModule>
         </Directory>
 
         ErrorLog "/var/log/httpd-roundcube-error.log"
         CustomLog "/var/log/httpd-roundcube-access.log" combined
 </VirtualHost>

Комментарии

 
blog/2011/12/09-freebsd_-_roundcube.txt · Последние изменения: 2011/12/09 16:52 — Антон Бугреев · []