1. # yum install epel-release
  2. # yum install php-mysql
  3. # yum install roundcubemail
  4. # echo "create database roundcube character set utf8 collate utf8_bin" | mysql -uroot -p
  5. # echo "GRANT ALL ON roundcube.* TO roundcube@localhost IDENTIFIED BY 'p4ssw3rd'" | mysql -uroot -p
  6. # mysql -uroot -p roundcube < /usr/share/roundcubemail/SQL/mysql.initial.sql (new install)
  7. # cp -p /etc/roundcubemail/config.inc.php.sample /etc/roundcubemail/config.inc.php
  8. # vi /etc/roundcubemail/config.inc.php (Edit)
    1. $config['db_dsnw'] = 'mysql://roundcube:p4ssw3rd@localhost/roundcube';
    2. #$config['enable_installer'] = true; (commented)
    3. $config['db_dsnw'] = 'mysql://roundcube:p4ssw3rd@localhost/roundcube';
    4. $config['smtp_server'] = 'tls://127.0.0.1';
    5. $config['smtp_port'] = 587;
    6. $config['smtp_user'] = '%u';
    7. $config['smtp_pass'] = '%p';
    8. $config['imap_auth_type'] = '';
  9. # vi /etc/php.ini (Edit)
    1. date.timezone = "America/Denver" (or whatever you want)
  10. # vi /etc/httpd/conf.d/roundcubemail.conf (Edit)
  11.    RewriteEngine On
       RewriteCond %{HTTPS} off
       RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    
       Alias /email /usr/share/roundcubemail
    
      # Define who can access the Webmail
      # You can enlarge permissions once configured
    
      <Directory /usr/share/roundcubemail/>
         <IfModule mod_authz_core.c>
            # Apache 2.4
            Require local
            Require all granted
         </IfModule>
         <IfModule !mod_authz_core.c>
            # Apache 2.2
            Order Deny,Allow
            Require all granted
            Allow from all
         </IfModule>
      </Directory>
    
  12. Restart Apache
    1. # systemctl restart httpd
  13. Access Roundcube
    1. https://my.roundcube.server/email