• Установка Roundcube и плагинов

 #10680   IgorA100
 25 фев 2023, 18:10
Подготавливаем сервер: https://www.kentavr.com.ru/forum/viewto ... 617#p10617
Готовим 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';
 #10683   IgorA100
 25 фев 2023, 23:32
Код: Выделить всёln -s /var/www/html/roundcube/program /var/www/html/roundcube/plugins/kolab_files
ln -s /var/www/html/roundcube/config /var/www/html/roundcube/plugins/kolab_files
ln -s /var/www/html/roundcube/logs /var/www/html/roundcube/plugins/kolab_files

ln -s /var/www/html/roundcube/plugins/kolab_folders /var/www/html/roundcube/plugins/kolab_files/lib/drivers/kolab/plugins
ln -s /var/www/html/roundcube/program /var/www/html/roundcube/plugins/kolab_folders

ln -s /var/www/html/roundcube/plugins/kolab_files/chwala/js /var/www/html/roundcube/plugins/kolab_files/chwala/api
ln -s /var/www/html/roundcube/program /var/www/html/roundcube/plugins/kolab_files/chwala/api
ln -s /var/www/html/roundcube/plugins/kolab_files/lib/viewers /var/www/html/roundcube/plugins/kolab_files/chwala/api

ln -s /var/www/html/roundcube/program/lib/Roundcube /var/www/html/roundcube/plugins/kolab_files/lib

ln -s /var/www/html/roundcube/program /var/www/html/roundcube/plugins/libcalendaring
ln -s /var/www/html/roundcube/config /var/www/html/roundcube/plugins/libcalendaring
ln -s /var/www/html/roundcube/plugins /var/www/html/roundcube/plugins/libcalendaring
/var/www/html/roundcube/plugins/libcalendaring# composer install