CentOS 8.x Roundcube installation
From Notes_Wiki
Home > CentOS > CentOS 8.x > Web based tools > CentOS 8.x Roundcube > Installation
To install roundcube use following steps:
- Install mariadb and set roundcube database using:
- dnf -y install mariadb-server
- systemctl start mariadb
- systemctl enable mariadb
- mysql_secure_installation
- mysql -u root -p
- CREATE DATABASE roundcubemail;
- CREATE USER 'roundcube'@'localhost' IDENTIFIED BY '<secret>';
- GRANT ALL ON roundcubemail.* to 'roundcube'@'localhost';
- FLUSH PRIVILEGES;
- Download LTS version of roundcube from https://roundcube.net/download/
- Extract the downloaded file at /var/www/roundcube folder
- Create /etc/httpd/conf.d/roundcube.conf with:
- <VirtualHost *:80>
- ServerName <server-fqdn>
- DocumentRoot /var/www/roundcube/
- ErrorLog /var/log/httpd/roundcube_error.log
- CustomLog /var/log/httpd/roundcube_access.log combined
- <Directory />
- Options FollowSymLinks
- AllowOverride All
- </Directory>
- <Directory /var/www/roundcube/>
- Options FollowSymLinks MultiViews
- AllowOverride All
- Order allow,deny
- allow from all
- </Directory>
- </VirtualHost>
- Other option is to install roundcube on a subdirectory / Alias such as /mail instead of setting it up on entire parent domain.
- Restart apache for settings to take effect:
- systemctl restart httpd
- Open http://<server-fqdn>/installer and follow various installer wizard pages. At some point in web based installer we need to enter MariaDB database details as created above. Example values to be filled in installer for Gmail SMTP and IMAP are explained at CentOS 8.x Roundcube web based installer for Gmail IMAP and SMTP
Refer:
Home > CentOS > CentOS 8.x > Web based tools > CentOS 8.x Roundcube > Installation