Подготавливаем сервер: https://www.kentavr.com.ru/forum/viewto ... 617#p10617
Готовим Apache:
Скачиваем дистрибутив: https://github.com/roundcube/roundcubemail/releases
И разархивируем:
Не забываем раздать права:
Подготавливаем БД:
Загружаем БД:
Устанавливаем Roundcube перейдя по ссылке: http://roundcube.local/installer
Не забываем добавить в конфиг типа такого:
Готовим Apache:
Код: Выделить всё
sudo vi /etc/apache2/sites-available/roundcube.conf
Код: Выделить всё
<VirtualHost *:80>
ServerName roundcube.local
ServerAdmin webmaster@localhost
DocumentRoot /var/www/sites/roundcube/public_html/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Код: Выделить всё
sudo a2ensite roundcube
sudo a2enmod rewrite
sudo systemctl restart apache2
Скачиваем дистрибутив: https://github.com/roundcube/roundcubemail/releases
И разархивируем:
Код: Выделить всё
sudo tar xvzf roundcubemail-1.X.X-complete.tar.gz
Не забываем раздать права:
Код: Выделить всё
sudo chown -R www-data:www-data /var/www/sites/roundcube/public_html/
sudo chmod -R 775 /var/www/sites/roundcube/public_html/
Подготавливаем БД:
Код: Выделить всё
mysql -u root -p
Код: Выделить всё
CREATE DATABASE roundcube_database;
CREATE USER 'roundcube'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON roundcube_database.* to 'roundcube'@'localhost';
Загружаем БД:
Код: Выделить всё
mysql -u roundcube -p roundcube_database < SQL/mysql.initial.sql
Устанавливаем Roundcube перейдя по ссылке: http://roundcube.local/installer
Не забываем добавить в конфиг типа такого:
Код: Выделить всё
// use this format for date display (PHP DateTime format)
$config['date_format'] = 'd-m-Y';
// give this choice of date formats to the user to select from
// Note: do not use ambiguous formats like m/d/Y
$config['date_formats'] = ['Y-m-d', 'Y/m/d', 'Y.m.d', 'd-m-Y', 'd/m/Y', 'd.m.Y', 'j.n.Y'];
// use this format for time display (PHP DateTime format)
$config['time_format'] = 'H:i';
// give this choice of time formats to the user to select from
$config['time_formats'] = ['G:i', 'H:i', 'g:i a', 'h:i A'];
// use this format for short date display (derived from date_format and time_format)
$config['date_short'] = 'D H:i';
// use this format for detailed date/time formatting (derived from date_format and time_format)
//$config['date_long'] = 'Y-m-d H:i';
$config['date_long'] = 'd-m-Y H:i';
//$config['enable_installer'] = true;
$config['default_host'] = 'site.com.ru';
$config['mail_domain'] = 'site.com.ru';